diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 36c48315b..34ccd85c6 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -237,7 +237,7 @@ define(function () { out.login_cancel_prompt = "...or if you may have entered the wrong username or password, cancel to try again."; - out.login_registerSuccess = "registered successfully. Make sure you don't forget your password!" + out.login_registerSuccess = "registered successfully. Make sure you don't forget your password!"; out.login_passwordMismatch = "The two passwords you entered do not match. Try again"; out.login_warning = [ diff --git a/www/examples/upload/main.js b/www/examples/upload/main.js index 0cfde2693..1aa4ffb75 100644 --- a/www/examples/upload/main.js +++ b/www/examples/upload/main.js @@ -12,16 +12,17 @@ define([ //console.log("plaintext"); //console.log(body); +/* 0 && Crypt.put(body, function (e, out) { if (e) { return void console.error(e); } if (out) { console.log(out); } - }); + }); */ var data = {}; -(_ => { +(function () { var cyphertext = data.payload = Crypto.encrypt(body, key); console.log("encrypted"); console.log(cyphertext); diff --git a/www/pad/main.js b/www/pad/main.js index 3c65bfcb0..2f611e566 100644 --- a/www/pad/main.js +++ b/www/pad/main.js @@ -62,7 +62,7 @@ define([ Cryptpad: Cryptpad, }; - var emitResize = APP.emitResize = function () { + var emitResize = module.emitResize = function () { var cw = $('#pad-iframe')[0].contentWindow; var evt = cw.document.createEvent('UIEvents'); @@ -635,9 +635,9 @@ define([ // this should only ever get called once, when the chain syncs var onReady = realtimeOptions.onReady = function (info) { - if (!APP.isMaximized) { + if (!module.isMaximized) { editor.execCommand('maximize'); - APP.isMaximized = true; + module.isMaximized = true; } module.patchText = TextPatcher.create({