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);