From f14fd06b4358155e4963288cffa7ca3e753fd64d Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Wed, 16 Oct 2024 12:27:41 +0200 Subject: [PATCH] Update inject.js --- ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js index cad2cc7..6a28b96 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js @@ -38,10 +38,10 @@ const introSkipper = { } return response; }, - xhrOpenWrapper(xhr, method, url, async, user, password) { + xhrOpenWrapper(xhr, method, url, ...rest) { this.d(`XHR Open: ${method} ${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) { const originalOnReadyStateChange = xhr.onreadystatechange;