Remove isPleroma from localStorage, window reload on account storage change [HD-17]

Signed-off-by: Marquis Kurt <software@marquiskurt.net>
This commit is contained in:
Marquis Kurt 2019-11-13 12:02:59 -05:00
parent 72cc633d18
commit f9dd8a5801
No known key found for this signature in database
GPG Key ID: 725636D259F5402D
3 changed files with 0 additions and 14 deletions

View File

@ -22,12 +22,6 @@ if (userLoggedIn()) {
refreshUserAccountData();
}
window.onstorage = (event: any) => {
if (event.key == "account") {
window.location.reload();
}
};
ReactDOM.render(
<HashRouter>
<SnackbarProvider

View File

@ -115,8 +115,6 @@ class AboutPage extends Component<any, IAboutPageState> {
render() {
const { classes } = this.props;
console.info(this.shouldRenderInstanceContact());
return (
<div className={classes.pageLayoutConstraints}>
<Paper>

View File

@ -25,12 +25,6 @@ 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"
);
});
}
/**