From 37a220fa8787b56bd4ae0035b15d8d439e5a0c46 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Mon, 15 Aug 2011 15:40:38 +0100 Subject: [PATCH] fixed opera bug thx @johnyma22 --- static/js/pad2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/pad2.js b/static/js/pad2.js index 7b27ecff..436070c7 100644 --- a/static/js/pad2.js +++ b/static/js/pad2.js @@ -150,6 +150,8 @@ function handshake() socket.once('connect', function() { 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; var token = readCookie("token"); @@ -158,7 +160,7 @@ function handshake() token = randomString(); createCookie("token", token, 60); } - + var msg = { "component": "pad", "type": "CLIENT_READY",