add basic pleroma check, stores in localStorage['isPleroma']

Signed-off-by: bleonard252 <bleonard252@rocketmail.com>
This commit is contained in:
bleonard252 2019-06-29 13:57:03 -04:00
parent 1c64001d9f
commit 411328b3a7
1 changed files with 3 additions and 0 deletions

View File

@ -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"))
})
}