rename addCustomId
This commit is contained in:
parent
5838779ff2
commit
8b997ff237
|
@ -11,7 +11,7 @@ bgReady.all = new Promise(r => (bgReady._resolveAll = r));
|
||||||
|
|
||||||
const uuidIndex = Object.assign(new Map(), {
|
const uuidIndex = Object.assign(new Map(), {
|
||||||
custom: {},
|
custom: {},
|
||||||
customize(obj, setter) {
|
addCustomId(obj, setter) {
|
||||||
Object.defineProperty(uuidIndex.custom, obj.id, {
|
Object.defineProperty(uuidIndex.custom, obj.id, {
|
||||||
get: () => obj,
|
get: () => obj,
|
||||||
set: setter,
|
set: setter,
|
||||||
|
|
|
@ -73,7 +73,7 @@ const styleMan = (() => {
|
||||||
_id: `${chrome.runtime.id}-${INJ_ORDER}`,
|
_id: `${chrome.runtime.id}-${INJ_ORDER}`,
|
||||||
_rev: 0,
|
_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` */
|
/** @type {Promise|boolean} will be `true` to avoid wasting a microtask tick on each `await` */
|
||||||
let ready = init();
|
let ready = init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user