From 91c7b7015e6646fb61bdc77731a6468493a2e27c Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 17 Feb 2016 13:32:54 +0100 Subject: Keep page title on state transitions --- js/codeq/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/codeq/navigation.js b/js/codeq/navigation.js index ce67084..f6f032f 100644 --- a/js/codeq/navigation.js +++ b/js/codeq/navigation.js @@ -74,7 +74,7 @@ along with this program. If not, see . */ if(History.getState().data.state === name) codeq.globalStateMachine.actualTransition.apply(codeq.globalStateMachine,Array.prototype.slice.apply(arguments, [0]));//special case which happens if the user refreshes while in the login screen (history state doesn't change because it goes from login to login and the above listener doesn't trigger) try { - History.pushState({'state': name, 'params': Array.prototype.slice.apply(arguments, [1])}, null, '?s=' + name); + History.pushState({'state': name, 'params': Array.prototype.slice.apply(arguments, [1])}, 'CodeQ', '?s=' + name); } catch (e) { codeq.log.error('init: History.pushState() failed for new state ' + name+'. Error:'+e, e); -- cgit v1.2.1