code cosmetics
This commit is contained in:
parent
d82dceada9
commit
918888ffb0
|
@ -1,11 +1,10 @@
|
||||||
/*
|
/*
|
||||||
global dbExec getStyles saveStyle deleteStyle
|
global dbExec getStyles saveStyle deleteStyle
|
||||||
global handleCssTransitionBug detectSloppyRegexps
|
global handleCssTransitionBug detectSloppyRegexps
|
||||||
global openEditor
|
global openEditor
|
||||||
global styleViaAPI
|
global styleViaAPI
|
||||||
global loadScript
|
global loadScript
|
||||||
global updater
|
*/
|
||||||
*/
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
window.API_METHODS = Object.assign(window.API_METHODS || {}, {
|
window.API_METHODS = Object.assign(window.API_METHODS || {}, {
|
||||||
|
|
|
@ -6,8 +6,7 @@ global API_METHODS
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// eslint-disable-next-line no-var
|
(() => {
|
||||||
var updater = (() => {
|
|
||||||
|
|
||||||
const STATES = {
|
const STATES = {
|
||||||
UPDATED: 'updated',
|
UPDATED: 'updated',
|
||||||
|
@ -31,7 +30,7 @@ var updater = (() => {
|
||||||
|
|
||||||
API_METHODS.updateCheckAll = checkAllStyles;
|
API_METHODS.updateCheckAll = checkAllStyles;
|
||||||
API_METHODS.updateCheck = checkStyle;
|
API_METHODS.updateCheck = checkStyle;
|
||||||
API_METHODS.getUpdaterStates = () => updater.STATES;
|
API_METHODS.getUpdaterStates = () => STATES;
|
||||||
|
|
||||||
prefs.subscribe(['updateInterval'], schedule);
|
prefs.subscribe(['updateInterval'], schedule);
|
||||||
schedule();
|
schedule();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user