From 87d09890a402f6ac19a0cf3e17259804932daf14 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Wed, 11 Mar 2015 18:27:39 +0100 Subject: [PATCH] =?UTF-8?q?Added=20=E2=80=98use=20strict=E2=80=99=20direct?= =?UTF-8?q?ive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/delta/js/main.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/delta/js/main.js b/frontend/delta/js/main.js index ba70863..1a333a9 100644 --- a/frontend/delta/js/main.js +++ b/frontend/delta/js/main.js @@ -21,6 +21,8 @@ refer to http://www.clipperz.com. */ +"use strict"; + function _pm_logEvent(anEvent) { // console.log("####", anEvent); @@ -60,7 +62,6 @@ function initOnMediaQuery () { }, Clipperz_PM_UI_availableStyles)); } - function run () { var parameters = {}; @@ -90,12 +91,6 @@ function simulateLogin () { Clipperz.Crypto.PRNG.defaultRandomGenerator().fastEntropyAccumulationForTestingPurpose(); -// MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'doLogin', {username:'joe', passphrase:'clipperz'}); // FULL -// http://localhost:8888/delta/index.html?username=joe&passphrase=clipperz - -// MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'doLogin', {username:';', passphrase:';'}); // EXPIRED -// http://localhost:8888/delta/index.html?username=%3B&passphrase=%3B - if ((getURLParameter('u') != null) && (getURLParameter('p'))) { MochiKit.Signal.signal(Clipperz.Signal.NotificationCenter, 'doLogin', {username:getURLParameter('u'), passphrase:getURLParameter('p')}); }