git ssb

2+

ev / mvd



Commit 1d4c84a26e992a18358cb0e3c675e1608c9f9ed7

do a quick swap on location.hash instead of a reload

Ev Bogue committed on 6/16/2018, 3:00:17 AM
Parent: 1dcbbcbd14dea8ce1e5c49f2e608f5a91297f5a4

Files changed

tools.jschanged
tools.jsView
@@ -132,18 +132,20 @@
132132 var mute = h('button.btn', 'Unmute', {
133133 onclick: function () {
134134 cache.mute = false
135135 localStorage[src] = JSON.stringify(cache)
136- location.reload()
136 + location.hash = '#'
137 + location.hash = src
137138 }
138139 })
139140 return mute
140141 } else {
141142 var mute = h('button.btn', 'Mute', {
142143 onclick: function () {
143144 cache.mute = true
144145 localStorage[src] = JSON.stringify(cache)
145- location.reload()
146 + location.hash = '#'
147 + location.hash = src
146148 }
147149 })
148150 return mute
149151 }

Built with git-ssb-web