prevent massive stacks in chrome

This commit is contained in:
ed
2021-08-12 22:12:05 +02:00
parent ed5f6736df
commit f0125cdc36
4 changed files with 45 additions and 20 deletions

View File

@@ -21,7 +21,6 @@ function main() {
}
function collect() {
setTimeout(collect, interval * 1000);
try {
var pd = document.querySelector('ytd-watch-flexy');
if (!pd)
@@ -39,7 +38,7 @@ function main() {
console.log("[yt-pdh]", ex);
}
}
collect();
setInterval(collect, interval * 1000);
}
var scr = document.createElement('script');