diff --git a/background/search-db.js b/background/search-db.js index d774297d..1404f216 100644 --- a/background/search-db.js +++ b/background/search-db.js @@ -7,6 +7,7 @@ define(require => { tryRegExp, } = require('/js/toolbox'); const {API} = require('/js/msg'); + const usercss = require('./usercss-api-helper'); // toLocaleLowerCase cache, autocleared after 1 minute const cache = new Map(); @@ -103,13 +104,13 @@ define(require => { function extractMeta(style) { return style.usercssData - ? (style.sourceCode.match(API.usercss.rxMETA) || [''])[0] + ? (style.sourceCode.match(usercss.rxMETA) || [''])[0] : null; } function stripMeta(style) { return style.usercssData - ? style.sourceCode.replace(API.usercss.rxMETA, '') + ? style.sourceCode.replace(usercss.rxMETA, '') : null; } diff --git a/js/prefs.js b/js/prefs.js index 4db5ad45..754835b7 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -141,10 +141,6 @@ define(require => { } }); - /** - * @type Prefs - * @namespace Prefs - */ const prefs = { STORAGE_KEY, diff --git a/js/toolbox.js b/js/toolbox.js index 2e6e9d40..6a739c9e 100644 --- a/js/toolbox.js +++ b/js/toolbox.js @@ -13,7 +13,8 @@ define(require => { const debounceTimers = new Map(); let URLS, deepCopy, deepEqual, deepMerge; - const toolbox = { + /** @type {Toolbox} */ + const toolbox = /** @namespace Toolbox */ { CHROME, FIREFOX, diff --git a/manage.html b/manage.html index 0f73d00b..260e97a2 100644 --- a/manage.html +++ b/manage.html @@ -217,7 +217,7 @@