diff --git a/src/pages/background/handler/calendarBackgroundHandler.ts b/src/pages/background/handler/calendarBackgroundHandler.ts index d9cc56b39..4181faadc 100644 --- a/src/pages/background/handler/calendarBackgroundHandler.ts +++ b/src/pages/background/handler/calendarBackgroundHandler.ts @@ -30,7 +30,8 @@ const calendarBackgroundHandler: MessageHandler = { if (openCalendarTabInfo !== undefined) { const tabid = openCalendarTabInfo.tab.id; - chrome.tabs.update(tabid, { active: true }); + await chrome.tabs.update(tabid, { active: true }); + await chrome.windows.update(openCalendarTabInfo.tab.windowId, { focused: true, drawAttention: true }); if (uniqueId !== undefined) await tabs.openCoursePopup({ uniqueId }, tabid); sendResponse(openCalendarTabInfo.tab);