mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-14 22:54:38 -04:00
Clear local storage when clicking "Disconnect"
This commit is contained in:
parent
811984878c
commit
ed92c3c61a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue