From b36484931dac78ba2dcf875e50e516457552c209 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 9 Jun 2017 15:55:46 +0200 Subject: [PATCH] Lint --- www/common/cryptpad-common.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 771fb1d66..1b9e2aef2 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -41,7 +41,7 @@ define([ var newPadNameKey = common.newPadNameKey = "newPadName"; var newPadPathKey = common.newPadPathKey = "newPadPath"; var oldStorageKey = common.oldStorageKey = 'CryptPad_RECENTPADS'; - var storageKey = common.storageKey = 'filesData'; + common.storageKey = 'filesData'; var PINNING_ENABLED = AppConfig.enablePinning; var store; @@ -373,7 +373,7 @@ define([ var name = (Messages.type)[type] + ' - ' + getLocaleDate(); return name; }; - var isDefaultName = common.isDefaultName = function (parsed, title) { + common.isDefaultName = function (parsed, title) { var name = getDefaultName(parsed); return title === name; }; @@ -511,8 +511,6 @@ define([ // STORAGE common.forgetPad = function (href, cb) { - var parsed = parsePadUrl(href); - if (typeof(getStore().forgetPad) === "function") { getStore().forgetPad(common.getRelativeHref(href), cb); return; @@ -567,7 +565,6 @@ define([ pad.atime = +new Date(); // set the name - var old = pad.title; pad.title = name; // If we now have a stronger version of a stored href, replace the weaker one by the strong one