aboutsummaryrefslogtreecommitdiff
path: root/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'settings.js')
-rw-r--r--settings.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings.js b/settings.js
index b0cb561..9a20dc3 100644
--- a/settings.js
+++ b/settings.js
@@ -63,7 +63,7 @@ function settingsPage (keys) {
onclick: function () {
if (add.value) {
servers.push(add.value)
- localforage.setItem('pubs', servers).then(function () { location.reload() })
+ localforage.setItem('pubs', servers).then(function () { location.hash = '' })
}
}
}, ['Add a pub'])
@@ -75,7 +75,7 @@ function settingsPage (keys) {
h('button', {
onclick: function () {
var newServers = servers.filter(item => item !== pub)
- localforage.setItem('pubs', newServers).then(function () { location.reload() })
+ localforage.setItem('pubs', newServers).then(function () { location.hash = '' })
}
}, ['Remove'])
]))