add basic pleroma check, stores in localStorage['isPleroma']
Signed-off-by: bleonard252 <bleonard252@rocketmail.com>
This commit is contained in:
parent
1c64001d9f
commit
411328b3a7
|
@ -15,4 +15,7 @@ export function refreshUserAccountData() {
|
|||
}).catch((err: Error) => {
|
||||
console.error(err.message);
|
||||
});
|
||||
client.get('/instance').then((resp: any) => {
|
||||
localStorage.setItem('isPleroma', (resp.data.version.match(/Pleroma/) ? "true" : "false"))
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue