mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
fixed opera bug thx @johnyma22
This commit is contained in:
parent
793ef42704
commit
37a220fa87
1 changed files with 3 additions and 1 deletions
|
@ -150,6 +150,8 @@ function handshake()
|
||||||
socket.once('connect', function()
|
socket.once('connect', function()
|
||||||
{
|
{
|
||||||
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
|
||||||
|
|
||||||
document.title = document.title + " | " + padId;
|
document.title = document.title + " | " + padId;
|
||||||
|
|
||||||
var token = readCookie("token");
|
var token = readCookie("token");
|
||||||
|
@ -158,7 +160,7 @@ function handshake()
|
||||||
token = randomString();
|
token = randomString();
|
||||||
createCookie("token", token, 60);
|
createCookie("token", token, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
var msg = {
|
var msg = {
|
||||||
"component": "pad",
|
"component": "pad",
|
||||||
"type": "CLIENT_READY",
|
"type": "CLIENT_READY",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue