Commit 1d4c84a26e992a18358cb0e3c675e1608c9f9ed7
do a quick swap on location.hash instead of a reload
Ev Bogue committed on 6/16/2018, 3:00:17 AMParent: 1dcbbcbd14dea8ce1e5c49f2e608f5a91297f5a4
Files changed
tools.js | changed |
tools.js | |||
---|---|---|---|
@@ -132,18 +132,20 @@ | |||
132 | 132 … | var mute = h('button.btn', 'Unmute', { | |
133 | 133 … | onclick: function () { | |
134 | 134 … | cache.mute = false | |
135 | 135 … | localStorage[src] = JSON.stringify(cache) | |
136 | - location.reload() | ||
136 … | + location.hash = '#' | ||
137 … | + location.hash = src | ||
137 | 138 … | } | |
138 | 139 … | }) | |
139 | 140 … | return mute | |
140 | 141 … | } else { | |
141 | 142 … | var mute = h('button.btn', 'Mute', { | |
142 | 143 … | onclick: function () { | |
143 | 144 … | cache.mute = true | |
144 | 145 … | localStorage[src] = JSON.stringify(cache) | |
145 | - location.reload() | ||
146 … | + location.hash = '#' | ||
147 … | + location.hash = src | ||
146 | 148 … | } | |
147 | 149 … | }) | |
148 | 150 … | return mute | |
149 | 151 … | } |
Built with git-ssb-web