Skip to content

Commit cc22594

Browse files
committed
Non english meet fix
Changed Leave call button selector that it'll work in every language. (Works with english and one other) Second thing is QoL thing so it will prefill half of the participants
1 parent 907d3b0 commit cc22594

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

exitMeet.js

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

popup.js

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
99

1010
} else {
1111
document.getElementById('noOfParticipant').innerHTML = request.noOfParticipants;
12+
document.getElementById('requiredParticipantToExit').value = Math.round(request.noOfParticipants/2);
1213

1314
document.getElementById('confirm').addEventListener('click', () => {
1415
const requiredParticipantToExit = document.getElementById('requiredParticipantToExit').value;

0 commit comments

Comments
 (0)