diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index a02accadf..f236147b8 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2537,6 +2537,7 @@ define([ $creation.focus(); }; + var autoStoreModal = {}; UIElements.onServerError = function (common, err, toolbar, cb) { //if (["EDELETED", "EEXPIRED", "ERESTRICTED"].indexOf(err.type) === -1) { return; } var priv = common.getMetadataMgr().getPrivateData(); @@ -2740,7 +2741,6 @@ define([ }; var storePopupState = false; - var autoStoreModal = {}; UIElements.displayStorePadPopup = function (common, data) { if (storePopupState) { return; } storePopupState = true; diff --git a/www/common/sframe-common-outer.js b/www/common/sframe-common-outer.js index 131958d83..61588b9aa 100644 --- a/www/common/sframe-common-outer.js +++ b/www/common/sframe-common-outer.js @@ -1687,8 +1687,6 @@ define([ sframeChan.on('Q_PASSWORD_CHECK', function (pw, cb) { Cryptpad.isNewChannel(currentPad.href, pw, function (e, isNew) { if (isNew === false) { - var channel = Utils.Hash.hrefToHexChannelId(currentPad.href, pw); - nThen(function (w) { // If the pad is stored, update its data var _secret = Utils.Hash.getSecrets(parsed.type, parsed.hash, pw);