Skip to content

Commit 28411af

Browse files
Update issue fixed
1 parent ad55600 commit 28411af

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

check_if_in_meeting.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ window.onbeforeunload = function (e) {
33
};
44
var url = window.location.hostname;
55
if (url.includes('meet')) {
6-
if (document.getElementsByClassName('wnPUne').length > 0) {
6+
if (document.getElementsByClassName('uGOf1d').length > 0) {
77
var meet = true;
88
} else {
99
var meet = false;
1010
}
1111
}
12-
if (document.getElementsByClassName('wnPUne').length > 0) {
12+
if (document.getElementsByClassName('uGOf1d').length > 0) {
1313
chrome.runtime.sendMessage({
1414
meet: meet,
15-
noOfParticipants: document.querySelector('.wnPUne').innerHTML,
15+
noOfParticipants: document.querySelector('.uGOf1d').innerHTML,
1616
running: localStorage.getItem('running')
1717
});
1818

exitMeet.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
function exit() {
22
if (running) {
3-
if (requiredParticipantToExit > parseInt(document.querySelector('.wnPUne').innerHTML)) {
3+
if (requiredParticipantToExit > parseInt(document.querySelector('.uGOf1d').innerHTML)) {
44
localStorage.removeItem('running');
5-
document.querySelector('.GaONte').click()
5+
document.querySelector('button[aria-label="Leave call"]').click()
66
clearInterval(exitInt);
77
}
88
}
99
}
1010

1111
var requiredParticipantToExit = parseInt(localStorage.getItem("requiredParticipantToExit"));
1212
var running = localStorage.getItem('running');
13-
console.log(requiredParticipantToExit, parseInt(document.querySelector('.wnPUne').innerHTML));
1413
var exitInt = setInterval(exit, 1000);

0 commit comments

Comments
 (0)