()
| 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') { |
no outgoing calls
no test coverage detected