mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Fixed #135, thx to @Wikinaut
This commit is contained in:
parent
e5d12f1d56
commit
ec56ca75ad
2 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ function handshake()
|
||||||
function sendClientReady(isReconnect)
|
function sendClientReady(isReconnect)
|
||||||
{
|
{
|
||||||
var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1);
|
var padId = document.location.pathname.substring(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
padId = unescape(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;
|
document.title = document.title + " | " + padId;
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
//get the padId out of the url
|
//get the padId out of the url
|
||||||
var urlParts= document.location.pathname.split("/");
|
var urlParts= document.location.pathname.split("/");
|
||||||
padId = urlParts[urlParts.length-2];
|
padId = decodeURIComponent(urlParts[urlParts.length-2]);
|
||||||
|
|
||||||
//set the title
|
//set the title
|
||||||
document.title = document.title + " | " + padId;
|
document.title = document.title + " | " + padId;
|
||||||
|
|
Loading…
Reference in a new issue