Solves first part of #377 -- Swap order of title and pad name
This commit is contained in:
parent
9ed42ac801
commit
9d72ddfbc7
|
@ -197,7 +197,7 @@ function handshake()
|
||||||
padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces
|
padId = decodeURIComponent(padId); // unescape neccesary due to Safari and Opera interpretation of spaces
|
||||||
|
|
||||||
if(!isReconnect)
|
if(!isReconnect)
|
||||||
document.title = document.title + " | " + padId.replace(/_+/g, ' ');
|
document.title = padId.replace(/_+/g, ' ') + " | " + document.title;
|
||||||
|
|
||||||
var token = readCookie("token");
|
var token = readCookie("token");
|
||||||
if (token == null)
|
if (token == null)
|
||||||
|
|
|
@ -73,7 +73,7 @@ function init() {
|
||||||
padId = decodeURIComponent(urlParts[urlParts.length-2]);
|
padId = decodeURIComponent(urlParts[urlParts.length-2]);
|
||||||
|
|
||||||
//set the title
|
//set the title
|
||||||
document.title = document.title + " | " + padId.replace(/_+/g, ' ');
|
document.title = padId.replace(/_+/g, ' ') + " | " + document.title;
|
||||||
|
|
||||||
//ensure we have a token
|
//ensure we have a token
|
||||||
token = readCookie("token");
|
token = readCookie("token");
|
||||||
|
|
Loading…
Reference in New Issue