From 7a5877d12a1f60d0af187878f0a2e1c7debefb58 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 4 Jul 2016 15:34:43 +0200 Subject: [PATCH] don't filter pads after 30 days --- www/common/cryptpad-common.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 71845fed3..285f8f5cf 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -26,7 +26,7 @@ define([ }; var storageKey = common.storageKey = 'CryptPad_RECENTPADS'; - var timeframe = common.timeframe = 1000 * 60 * 60 * 24 * 30; + //var timeframe = common.timeframe = 1000 * 60 * 60 * 24 * 30; /* the first time this gets called, your local storage will migrate to a @@ -115,9 +115,6 @@ define([ pad.title = title; } return pad; - }).filter(function (pad) { - // remove pads with an expired atime - return (now.getTime() - new Date(pad.atime).getTime()) < timeframe; }); if (!isUpdate) {