Update inject.js

This commit is contained in:
rlauu 2024-10-16 12:27:41 +02:00
parent dc5fc951ed
commit f14fd06b43

View File

@ -38,10 +38,10 @@ const introSkipper = {
} }
return response; return response;
}, },
xhrOpenWrapper(xhr, method, url, async, user, password) { xhrOpenWrapper(xhr, method, url, ...rest) {
this.d(`XHR Open: ${method} ${url}`); this.d(`XHR Open: ${method} ${url}`);
xhr._introSkipperUrl = url; xhr._introSkipperUrl = url;
return this.originalXHROpen.apply(xhr, [method, url, async, user, password]); return this.originalXHROpen.apply(xhr, [method, url, ...rest]);
}, },
xhrSendWrapper(xhr, body) { xhrSendWrapper(xhr, body) {
const originalOnReadyStateChange = xhr.onreadystatechange; const originalOnReadyStateChange = xhr.onreadystatechange;