diff --git a/app/src/main/java/com/futo/platformplayer/api/media/platforms/js/JSClient.kt b/app/src/main/java/com/futo/platformplayer/api/media/platforms/js/JSClient.kt index 1783ed38..1718acb3 100644 --- a/app/src/main/java/com/futo/platformplayer/api/media/platforms/js/JSClient.kt +++ b/app/src/main/java/com/futo/platformplayer/api/media/platforms/js/JSClient.kt @@ -153,8 +153,8 @@ open class JSClient : IPlatformClient { _captcha = descriptor.getCaptchaData(); flags = descriptor.flags.toTypedArray(); - _httpClient = JSHttpClient(this, null, _captcha); - _httpClientAuth = JSHttpClient(this, _auth, _captcha); + _httpClient = JSHttpClient(this, null, _captcha, config); + _httpClientAuth = JSHttpClient(this, _auth, _captcha, config); _plugin = V8Plugin(context, descriptor.config, null, _httpClient, _httpClientAuth); _plugin.withDependency(context, "scripts/polyfil.js"); _plugin.withDependency(context, "scripts/source.js"); @@ -186,8 +186,8 @@ open class JSClient : IPlatformClient { _captcha = descriptor.getCaptchaData(); flags = descriptor.flags.toTypedArray(); - _httpClient = JSHttpClient(this, null, _captcha); - _httpClientAuth = JSHttpClient(this, _auth, _captcha); + _httpClient = JSHttpClient(this, null, _captcha, config); + _httpClientAuth = JSHttpClient(this, _auth, _captcha, config); _plugin = V8Plugin(context, descriptor.config, script, _httpClient, _httpClientAuth); _plugin.withDependency(context, "scripts/polyfil.js"); _plugin.withDependency(context, "scripts/source.js");