From 27c713e11e6ccfedb51432ca8ab854d7aee6d2ae Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 28 Jan 2022 16:10:06 +0300 Subject: [PATCH] cosmetics --- background/common.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/background/common.js b/background/common.js index d6e01fea..b75db5d5 100644 --- a/background/common.js +++ b/background/common.js @@ -5,13 +5,6 @@ * Common stuff that's loaded first so it's immediately available to all background scripts */ -/* exported - addAPI - bgReady - createCache - uuidIndex -*/ - const bgReady = {}; bgReady.styles = new Promise(r => (bgReady._resolveStyles = r)); bgReady.all = new Promise(r => (bgReady._resolveAll = r)); @@ -26,6 +19,7 @@ const uuidIndex = Object.assign(new Map(), { }, }); +/* exported addAPI */ function addAPI(methods) { for (const [key, val] of Object.entries(methods)) { const old = API[key]; @@ -37,6 +31,7 @@ function addAPI(methods) { } } +/* exported createCache */ /** Creates a FIFO limit-size map. */ function createCache({size = 1000, onDeleted} = {}) { const map = new Map();