You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Re-register content scripts whenever extension is installed or updated, provided permissions are available. Suppress notification for silent background operation.
Copy file name to clipboardExpand all lines: extension/content-zoom.js
+41-29Lines changed: 41 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
/// <reference path="../types/chrome.d.ts" />
3
3
/// <reference path="../types/index.js" />
4
4
5
-
letisZoomRunning=false
5
+
letisZoomInjected=false
6
6
7
7
setInterval(()=>{
8
8
// Meeting page
@@ -11,13 +11,13 @@ setInterval(() => {
11
11
12
12
// On the meeting page and main zoom function is not running, inject it
13
13
// This won't cause multiple main zoom injections into the current meeting because when the previous meeting ends, all UI elements are gone, destroying the corresponding event listeners
14
-
if(isZoomUrlMatching&&!isZoomRunning){
14
+
if(isZoomUrlMatching&&!isZoomInjected){
15
15
zoom()
16
-
isZoomRunning=true
16
+
isZoomInjected=true
17
17
}
18
18
// Set flag to false when meetings ends and the tab navigates to a non matching URL, or simply the current URL is a non meeting URL
19
19
if(!isZoomUrlMatching){
20
-
isZoomRunning=false
20
+
isZoomInjected=false
21
21
}
22
22
},2000)
23
23
@@ -120,7 +120,7 @@ function zoom() {
120
120
121
121
// CRITICAL DOM DEPENDENCY. Wait until the meeting end icon appears, used to detect meeting start
// Wait for transcript node to be visible. When user is waiting in meeting lobbing for someone to let them in, the call end icon is visible, but the captions icon is still not visible.
0 commit comments