From 918888ffb02a9cc6866c7bcad09d1ddb5c4fbc8b Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 16 Feb 2018 18:05:25 +0300 Subject: [PATCH] code cosmetics --- background/background.js | 13 ++++++------- background/update.js | 5 ++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/background/background.js b/background/background.js index b3acf34b..ba4f0db0 100644 --- a/background/background.js +++ b/background/background.js @@ -1,11 +1,10 @@ /* - global dbExec getStyles saveStyle deleteStyle - global handleCssTransitionBug detectSloppyRegexps - global openEditor - global styleViaAPI - global loadScript - global updater - */ +global dbExec getStyles saveStyle deleteStyle +global handleCssTransitionBug detectSloppyRegexps +global openEditor +global styleViaAPI +global loadScript +*/ 'use strict'; window.API_METHODS = Object.assign(window.API_METHODS || {}, { diff --git a/background/update.js b/background/update.js index 8485ea05..cd9b77bb 100644 --- a/background/update.js +++ b/background/update.js @@ -6,8 +6,7 @@ global API_METHODS */ 'use strict'; -// eslint-disable-next-line no-var -var updater = (() => { +(() => { const STATES = { UPDATED: 'updated', @@ -31,7 +30,7 @@ var updater = (() => { API_METHODS.updateCheckAll = checkAllStyles; API_METHODS.updateCheck = checkStyle; - API_METHODS.getUpdaterStates = () => updater.STATES; + API_METHODS.getUpdaterStates = () => STATES; prefs.subscribe(['updateInterval'], schedule); schedule();