rename addCustomId

This commit is contained in:
tophf 2022-01-28 18:26:50 +03:00
parent 5838779ff2
commit 8b997ff237
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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();