From 51c1c1ccf7bd71bed5079bc5ae3d7cda89e09894 Mon Sep 17 00:00:00 2001 From: shinigami-eyes <43276258+shinigami-eyes@users.noreply.github.com> Date: Sun, 12 May 2019 16:09:05 +0200 Subject: [PATCH] Move current version to global scope --- extension/background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/background.js b/extension/background.js index 5458c4d..6e9d43e 100644 --- a/extension/background.js +++ b/extension/background.js @@ -3,6 +3,8 @@ var browser = browser || chrome; var PENDING_SUBMISSIONS = ':PENDING_SUBMISSIONS' var MIGRATION = ':MIGRATION' +var CURRENT_VERSION = 11; + // If a user labels one of these URLs, they're making a mistake. Ignore the label. // This list includes: // * Social networks that are not supported @@ -239,7 +241,6 @@ browser.storage.local.get(['overrides', 'accepted', 'installationId'], v => { overrides = v.overrides || {} var migration = overrides[MIGRATION] || 0; - var CURRENT_VERSION = 11; if(migration < CURRENT_VERSION){ for(var key of Object.getOwnPropertyNames(overrides)){