diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 9156c2639..da1e4a103 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1450,7 +1450,7 @@ define([ }, false); }); - }).nThen(function (waitFor) { + }).nThen(function () { // Load the new pad when the hash has changed var oldHref = document.location.href; window.onhashchange = function (ev) { diff --git a/www/profile/inner.js b/www/profile/inner.js index 98523070c..56a6e8f48 100644 --- a/www/profile/inner.js +++ b/www/profile/inner.js @@ -191,7 +191,6 @@ define([ APP.$friend.html(''); var friends = common.getMetadataMgr().getPrivateData().friends; - var $temp; if (friends[data.curvePublic]) { APP.$friend.append(h('p.cp-app-profile-friend', Messages._getKey('profile_friend', [data.name || Messages.anonymous]))); return;