From b8ece12a2402da98a227639a9b845b6786fbde53 Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Tue, 10 Dec 2024 23:43:19 -0600 Subject: [PATCH] Fix realBrowser undefined --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 6044326..f74c943 100644 --- a/src/content.ts +++ b/src/content.ts @@ -258,9 +258,9 @@ export async function scrapeCourseData() { } } -const realBrowser = process.env.PLASMO_BROWSER === 'chrome' ? chrome : browser; /** This listens for clicks on the buttons that switch between the enabled and disabled professor tabs and reports back to background.ts */ export function listenForTableChange() { + const realBrowser = process.env.PLASMO_BROWSER === 'chrome' ? chrome : browser; const observer = new MutationObserver((mutationsList) => { for (const mutation of mutationsList) { if (