mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-15 21:55:36 +07:00
Version 1.24.0
This commit is contained in:
@@ -25,13 +25,12 @@
|
||||
* This watchdog restarts the whole Add-on, when the check fails.
|
||||
*/
|
||||
const CHECK_INTERVAL = 60000;
|
||||
const __dirtyURL = "https://clearurls.roebert.eu?utm_source=addon";
|
||||
const __cleanURL = new URL("https://clearurls.roebert.eu").toString();
|
||||
|
||||
setInterval(function() {
|
||||
if(isStorageAvailable() && storage.globalStatus) {
|
||||
const dirtyURL = "https://clearurls.roebert.eu?utm_source=addon";
|
||||
const cleanURL = "https://clearurls.roebert.eu";
|
||||
|
||||
if(pureCleaning(dirtyURL, true) !== cleanURL) {
|
||||
if(new URL(pureCleaning(__dirtyURL, true)).toString() !== __cleanURL) {
|
||||
storage.watchDogErrorCount += 1;
|
||||
console.log(translate('watchdog', storage.watchDogErrorCount));
|
||||
saveOnExit();
|
||||
@@ -41,4 +40,4 @@ setInterval(function() {
|
||||
saveOnExit();
|
||||
}
|
||||
}
|
||||
}, CHECK_INTERVAL);
|
||||
}, CHECK_INTERVAL);
|
||||
|
||||
Reference in New Issue
Block a user