mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Clear local storage when clicking "Disconnect"
This commit is contained in:
parent
811984878c
commit
ed92c3c61a
@ -796,6 +796,10 @@ export default class App extends Component {
|
|||||||
networks.delete(buf.network);
|
networks.delete(buf.network);
|
||||||
return { networks };
|
return { networks };
|
||||||
});
|
});
|
||||||
|
// TODO: only clear local storage if this network is stored there
|
||||||
|
if (buf.network == 1 && window.localStorage) {
|
||||||
|
localStorage.removeItem("autoconnect");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case BufferType.CHANNEL:
|
case BufferType.CHANNEL:
|
||||||
var client = this.clients.get(buf.network);
|
var client = this.clients.get(buf.network);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user