fix: show calendar in active window (#312)
* fix: show calendar in active window * fix: update calendarBackgroundHandler.ts --------- Co-authored-by: Razboy20 <razboy20@gmail.com>
This commit is contained in:
@@ -30,7 +30,8 @@ const calendarBackgroundHandler: MessageHandler<CalendarBackgroundMessages> = {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user