From c0e2c1060e7f25eef2cc983d377502d09f3ac734 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 15 Jun 2017 17:54:35 +0200 Subject: [PATCH] don't reload when slide hash changes --- www/common/cryptpad-common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 2063f3a48..e3243b00d 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1449,8 +1449,8 @@ define([ initialized = true; updateLocalVersion(); - f(void 0, env); + if (typeof(window.onhashchange) === 'function') { window.onhashchange(); } } }; @@ -1491,8 +1491,9 @@ define([ if (parsedOld && parsedNew && ( parsedOld.type !== parsedNew.type || parsedOld.channel !== parsedNew.channel - //|| parsedOld.mode !== parsedNew.mode + || parsedOld.mode !== parsedNew.mode || parsedOld.key !== parsedNew.key)) { + if (!parsedOld.channel) { oldHref = newHref; return; } document.location.reload(); return; }