Skip to content

Commit f326a36

Browse files
committed
reload on hashchange
1 parent c52b456 commit f326a36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

static/js/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,7 @@ window.onbeforeunload = function(e) {
169169
setSource(editor.getValue());
170170
socket.close();
171171
}
172+
173+
window.onhashchange = function(e) {
174+
window.location.reload();
175+
}

0 commit comments

Comments
 (0)