MCPcopy Create free account
hub / github.com/zxlie/FeHelper / runUpdateCheck

Function runUpdateCheck

apps/background/background.js:898–908  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

896 };
897
898 let runUpdateCheck = function () {
899 const requestUpdateCheckKey = 'request' + 'UpdateCheck';
900 const requestUpdateCheck = chrome.runtime && chrome.runtime[requestUpdateCheckKey];
901 if (typeof requestUpdateCheck === 'function' && navigator.userAgent.indexOf("Firefox") === -1) {
902 requestUpdateCheck.call(chrome.runtime, (status) => {
903 if (status === "update_available") {
904 chrome.runtime.reload();
905 }
906 });
907 }
908 };
909
910 chrome.alarms.onAlarm.addListener((alarm) => {
911 if (alarm.name === 'fehelper-check-update') {

Callers 2

background.jsFile · 0.85
_checkUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected