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:
parent
72cc633d18
commit
f9dd8a5801
|
@ -22,12 +22,6 @@ if (userLoggedIn()) {
|
|||
refreshUserAccountData();
|
||||
}
|
||||
|
||||
window.onstorage = (event: any) => {
|
||||
if (event.key == "account") {
|
||||
window.location.reload();
|
||||
}
|
||||
};
|
||||
|
||||
ReactDOM.render(
|
||||
<HashRouter>
|
||||
<SnackbarProvider
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue