mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 03:38:13 +08:00
remove before close
This commit is contained in:
@@ -59,11 +59,11 @@ class MainContainer extends React.Component {
|
||||
this.props.setAuthToken(data.token);
|
||||
}
|
||||
this.unlisten();
|
||||
localStorage.removeItem('auth');
|
||||
window.close();
|
||||
} else {
|
||||
console.error('auth was set, but did not contain a token');
|
||||
}
|
||||
localStorage.removeItem('auth');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user