diff --git a/static/js/pad.js b/static/js/pad.js index 0ed2a5d08..4fa46ac6b 100644 --- a/static/js/pad.js +++ b/static/js/pad.js @@ -197,7 +197,7 @@ function handshake() padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces if(!isReconnect) - document.title = document.title + " | " + padId.replace(/_+/g, ' '); + document.title = padId.replace(/_+/g, ' ') + " | " + document.title; var token = readCookie("token"); if (token == null) diff --git a/static/js/timeslider.js b/static/js/timeslider.js index b02fd22f2..a36bd628a 100644 --- a/static/js/timeslider.js +++ b/static/js/timeslider.js @@ -73,7 +73,7 @@ function init() { padId = decodeURIComponent(urlParts[urlParts.length-2]); //set the title - document.title = document.title + " | " + padId.replace(/_+/g, ' '); + document.title = padId.replace(/_+/g, ' ') + " | " + document.title; //ensure we have a token token = readCookie("token");