From 1b006f91dd27551418fc683a4a790afe6af45da1 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Tue, 22 Mar 2022 20:09:42 +0000 Subject: [PATCH] Add settings purge button --- src/views/SettingsView.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/SettingsView.vue b/src/views/SettingsView.vue index 7ba81fb..bf7c9d4 100644 --- a/src/views/SettingsView.vue +++ b/src/views/SettingsView.vue @@ -9,6 +9,8 @@ +

Purge all settings

+ @@ -19,4 +21,9 @@ import Content from '../components/content/Content.vue' import UserSettings from '../components/userSettings/UserSettings.vue' import ConfiguredChannels from '../components/channelSettings/ConfiguredChannels.vue' import AddChannel from '../components/channelSettings/AddChannel.vue' + +function purgeSettings() { + window.localStorage.clear() + document.location.href = "/" +}