Clear local storage when clicking "Disconnect"
This commit is contained in:
@@ -796,6 +796,10 @@ export default class App extends Component {
|
||||
networks.delete(buf.network);
|
||||
return { networks };
|
||||
});
|
||||
// TODO: only clear local storage if this network is stored there
|
||||
if (buf.network == 1 && window.localStorage) {
|
||||
localStorage.removeItem("autoconnect");
|
||||
}
|
||||
break;
|
||||
case BufferType.CHANNEL:
|
||||
var client = this.clients.get(buf.network);
|
||||
|
||||
Reference in New Issue
Block a user