From 0e9ebddf119f8d99d873197cc06f07062509197e Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 15 Jun 2017 18:13:24 +0200 Subject: [PATCH] fix the things --- www/common/common-util.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/common/common-util.js b/www/common/common-util.js index 0d0d4c776..0bc53f5dd 100644 --- a/www/common/common-util.js +++ b/www/common/common-util.js @@ -68,7 +68,11 @@ define([], function () { Util.replaceHash = function (hash) { if (window.history && window.history.replaceState) { if (!/^#/.test(hash)) { hash = '#' + hash; } - return void window.history.replaceState({}, window.document.title, hash); + void window.history.replaceState({}, window.document.title, hash); + if (typeof(window.onhashchange) === 'function') { + window.onhashchange(); + } + return; } window.location.hash = hash; };