summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-17 13:32:54 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-02-17 13:32:54 +0100
commit91c7b7015e6646fb61bdc77731a6468493a2e27c (patch)
treee93c7b9376f5c9c2206b98fc539417aa1d691835 /js
parent1aed4f117c015ac21c5001e897ae01528a49df38 (diff)
Keep page title on state transitions
Diffstat (limited to 'js')
-rw-r--r--js/codeq/navigation.js2
1 files changed, 1 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */
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);