From 3a781bb94c68daa1c23ac4958845311ca9f734dc Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Wed, 6 Oct 2021 21:57:28 +1100 Subject: [PATCH] apply on onboarding page --- extension/launcher.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/launcher.js b/extension/launcher.js index 6b7b018..8398839 100644 --- a/extension/launcher.js +++ b/extension/launcher.js @@ -9,10 +9,10 @@ (async () => { const site = location.host.endsWith('.notion.site'), page = location.pathname.split(/[/-]/g).reverse()[0].length === 32, - root = location.pathname === '/', + whitelisted = ['/', '/onboarding'].includes(location.pathname), signedIn = localStorage['LRU:KeyValueStore2:current-user-id']; - if (site || page || (root && signedIn)) { + if (site || page || (whitelisted && signedIn)) { import(chrome.runtime.getURL('api/_.mjs')).then(async (api) => { const { fs, registry, web } = api; for (const mod of await registry.list((mod) => registry.enabled(mod.id))) {