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 7c8fdba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holo-key-manager-extension/scripts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ const createOrUpdateWindow = (
handleWindowUpdateOrCreate: () => Promise<void>
) => {
const onWindowCreated = (newWindow: chrome.windows.Window | undefined) => {
console.log(3);
console.log(newWindow);
if (!newWindow) return;
windowId = newWindow.id;
chrome.windows.onRemoved.addListener((id) => {
Expand Down Expand Up @@ -93,8 +91,10 @@ const updateOrCreateWindow = (
sendResponse: SendResponseWithSender
) =>
updateOrCreateWindowCommon(async () => {
console.log(4);
if (chrome.runtime.lastError) return handleError(sendResponse);
try {
console.log(5);
sendResponse({ action: successAction });
} catch (error) {
handleError(sendResponse);
Expand Down

0 comments on commit 7c8fdba

Please sign in to comment.