Skip to content

Commit

Permalink
Test console
Browse files Browse the repository at this point in the history
  • Loading branch information
mrruby committed Jul 18, 2024
1 parent 3ab8b9b commit 4d975cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion holo-key-manager-extension/scripts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const createOrUpdateWindow = (
) => {
const onWindowCreated = (newWindow: chrome.windows.Window | undefined) => {
console.log(3);
console.log(newWindow);
console.log('newWindow', newWindow);
if (!newWindow) return;
windowId = newWindow.id;
chrome.windows.onRemoved.addListener((id) => {
Expand All @@ -73,6 +73,8 @@ const createOrUpdateWindow = (
handleWindowUpdateOrCreate();
};

console.log('windowId', windowId);

if (windowId) {
chrome.windows.remove(windowId, () => {
windowId = undefined;
Expand Down

0 comments on commit 4d975cb

Please sign in to comment.