From ed92c3c61ae18f1d4930cb338ee34e4b816a2d25 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 25 May 2021 12:57:40 +0200 Subject: [PATCH] Clear local storage when clicking "Disconnect" --- components/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/app.js b/components/app.js index 122939e..1a4e0ce 100644 --- a/components/app.js +++ b/components/app.js @@ -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);