From 905c55de3745833967ac8073161117c955da042a Mon Sep 17 00:00:00 2001 From: Dawid Urbas Date: Thu, 18 Jul 2024 14:57:10 +0200 Subject: [PATCH] Test console --- holo-key-manager-extension/scripts/background.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/holo-key-manager-extension/scripts/background.ts b/holo-key-manager-extension/scripts/background.ts index 7ac784a..fc53f95 100644 --- a/holo-key-manager-extension/scripts/background.ts +++ b/holo-key-manager-extension/scripts/background.ts @@ -62,6 +62,7 @@ const createOrUpdateWindow = ( windowProperties: WindowProperties, handleWindowUpdateOrCreate: () => Promise ) => { + console.log(2); const onWindowCreated = (newWindow: chrome.windows.Window | undefined) => { if (!newWindow) return; windowId = newWindow.id; @@ -71,6 +72,8 @@ const createOrUpdateWindow = ( handleWindowUpdateOrCreate(); }; + console.log(windowId); + if (windowId) { chrome.windows.remove(windowId, () => { windowId = undefined; @@ -138,7 +141,7 @@ const processMessageWebApp = async ( ) => { try { if (!(await isSetupComplete())) { - console.log(JSON.stringify(parsedMessage)); + console.log('1'); return updateOrCreateWindow(NEEDS_SETUP, sendResponseWithSender); } switch (parsedMessage.action) {