Skip to content

Commit

Permalink
Fix realBrowser undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Dec 11, 2024
1 parent af39f1e commit b8ece12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit b8ece12

Please sign in to comment.