From 4fdc5f897ec33e22c3cf4862f7599115e799940c Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 24 Apr 2017 14:26:55 +0200 Subject: [PATCH] only feedback migration if user had legacy store --- www/common/cryptpad-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 7ca0aa774..1d5015497 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -306,12 +306,12 @@ define([ // Get the pads from localStorage to migrate them to the object store var getLegacyPads = common.getLegacyPads = function (cb) { require(['/customize/store.js'], function(Legacy) { // TODO DEPRECATE_F - feedback('MIGRATE_LEGACY_STORE'); Legacy.ready(function (err, legacy) { if (err) { cb(err, null); return; } legacy.get(storageKey, function (err2, recentPads) { if (err2) { cb(err2, null); return; } if (Array.isArray(recentPads)) { + feedback('MIGRATE_LEGACY_STORE'); cb(void 0, migrateRecentPads(recentPads)); return; }