From 48626ceafb7dee17666b577143a260d6b5f7e7fa Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 12 Feb 2016 16:58:17 -0800 Subject: [PATCH] Remove spurious storage.fetch from migration This should really only be called once, from background.js. Calling it twice can cause doubled listeners for the registration_done event, which in turn leads to duplicate post-registration callbacks, dual sync requests, and an eventual datastore inconsistency. Fixes #670 // FREEBIE --- js/database.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/database.js b/js/database.js index b1441a72..36c10bed 100644 --- a/js/database.js +++ b/js/database.js @@ -107,7 +107,6 @@ next(); } }); - storage.fetch(); next(); } },