From 94417d9a8bb99707ba3d2d408f23fa531e98b174 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 17 Feb 2017 14:28:18 +0100 Subject: [PATCH] jshint compliance --- www/common/cryptpad-common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 1449139e8..af5fca0f3 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -338,9 +338,9 @@ define([ */ var migrateRecentPads = common.migrateRecentPads = function (pads) { return pads.map(function (pad) { + var hash; if (isArray(pad)) { var href = pad[0]; - var hash; href.replace(/\#(.*)$/, function (a, h) { hash = h; }); @@ -361,7 +361,7 @@ define([ if (/^https*:\/\//.test(pad.href)) { pad.href = common.getRelativeHref(pad.href); } - var hash = pad.href.slice(pad.href.indexOf('#')+1); + hash = pad.href.slice(pad.href.indexOf('#')+1); if (!hash || !common.parseHash(hash)) { return; } return pad; } else { @@ -1192,7 +1192,7 @@ define([ var $userAdmin = createDropdown(dropdownConfigUser); $userAdmin.find('a.logout').click(function (e) { - Cryptpad.logout(); + common.logout(); window.location.href = '/'; }); $userAdmin.find('a.settings').click(function (e) {