* refactor go files, add headless telemost support * js crap -> ts crap * docker-build (#32) Co-authored-by: Mimocro <suzumagefag@gmail.com> * add headless telemost for creator app * UX improvements (#39) * Add search in split tunneling app list * Add captcha detection * Add autoclick settings * headless vk joiner * add headless telemost joiner * refactor go modules * redesign settings dialog * headless option in settings * headless joiner support in MainActivity * display headless vk status in statusBar * update ux for headless in creator app * fix double log render for headless mode in creator * unicode for cyrillic * add socks auth * put socksPort inf prefs, verify that port is free on start * proxy only mode * mask addresses in go network errors * update docker build, add file write logic for headless * increment release version, add make-release script --------- Co-authored-by: kulikov <user@Mac.lan> Co-authored-by: Mimocro <67226986+Mimocro@users.noreply.github.com> Co-authored-by: Mimocro <suzumagefag@gmail.com> Co-authored-by: senya <76913432+senya-sh@users.noreply.github.com>
26 lines
822 B
JavaScript
26 lines
822 B
JavaScript
(function() {
|
|
if (window.__callCheckerStarted) return;
|
|
window.__callCheckerStarted = true;
|
|
|
|
var tabId = window.__CALL_CHECKER_TAB_ID || 'unknown';
|
|
console.log('[CALL_STATUS] Checker started for ' + tabId);
|
|
|
|
var CHECK_INTERVAL = 10000;
|
|
var INITIAL_DELAY = 10000;
|
|
|
|
var VK_LEAVE_SELECTOR = '[data-testid="calls_call_footer_button_leave_call"]';
|
|
var TM_END_SELECTOR = '[data-testid="end-call-alt-button"]';
|
|
|
|
var checkCallStatus = function() {
|
|
var vkBtn = document.querySelector(VK_LEAVE_SELECTOR);
|
|
var tmBtn = document.querySelector(TM_END_SELECTOR);
|
|
var status = (vkBtn || tmBtn) ? 'active' : 'inactive';
|
|
console.log('[CALL_STATUS] ' + tabId + ':' + status);
|
|
};
|
|
|
|
setTimeout(function() {
|
|
checkCallStatus();
|
|
setInterval(checkCallStatus, CHECK_INTERVAL);
|
|
}, INITIAL_DELAY);
|
|
})();
|