diff --git a/background/common.js b/background/common.js index b75db5d5..9eb6ba1e 100644 --- a/background/common.js +++ b/background/common.js @@ -11,7 +11,7 @@ bgReady.all = new Promise(r => (bgReady._resolveAll = r)); const uuidIndex = Object.assign(new Map(), { custom: {}, - customize(obj, setter) { + addCustomId(obj, setter) { Object.defineProperty(uuidIndex.custom, obj.id, { get: () => obj, set: setter, diff --git a/background/style-manager.js b/background/style-manager.js index b480911c..ac6702bb 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -73,7 +73,7 @@ const styleMan = (() => { _id: `${chrome.runtime.id}-${INJ_ORDER}`, _rev: 0, }; - uuidIndex.customize(orderWrap, setOrder); + uuidIndex.addCustomId(orderWrap, setOrder); /** @type {Promise|boolean} will be `true` to avoid wasting a microtask tick on each `await` */ let ready = init();