Skip to content

Commit 3910f31

Browse files
committed
unify fetch
1 parent 6fbca4a commit 3910f31

5 files changed

+434
-667
lines changed

assets_js_bitrequest_core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const glob_ls_support = check_local(),
3434
(glob_thishostname == "bitrequest.github.io") ? "hosted" :
3535
(glob_thishostname == glob_localhostname) ? "selfhosted" : "unknown",
3636
glob_wl = navigator.wakeLock,
37-
glob_after_poll_timeout = 15000,
37+
glob_after_scan_timeout = 15000,
3838
glob_xss_alert = "xss attempt detected",
3939
glob_langcode = setlangcode(); // set saved or system language
4040

@@ -2627,7 +2627,7 @@ function canceldialog(pass) {
26272627
}, 600, function() {
26282628
clearTimeout(timeout);
26292629
});
2630-
if (request) { // reset after_poll
2630+
if (request) { // reset after_scan
26312631
request.rq_timer = now();
26322632
}
26332633
}
@@ -2681,8 +2681,8 @@ function cpd_pollcheck() {
26812681
const rq_init = request.rq_init,
26822682
rq_timer = request.rq_timer,
26832683
rq_time = now() - rq_timer;
2684-
if (rq_time > glob_after_poll_timeout) {
2685-
after_poll(rq_init);
2684+
if (rq_time > glob_after_scan_timeout) {
2685+
after_scan(rq_init);
26862686
return
26872687
}
26882688
}

0 commit comments

Comments
 (0)