diff --git a/app/src/main/java/eu/kanade/presentation/webview/WebViewScreen.kt b/app/src/main/java/eu/kanade/presentation/webview/WebViewScreen.kt index f59568e2a..94b0ed0f3 100644 --- a/app/src/main/java/eu/kanade/presentation/webview/WebViewScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/webview/WebViewScreen.kt @@ -44,7 +44,7 @@ fun WebViewScreen( onClearCookies: (String) -> Unit, ) { val context = LocalContext.current - val state = rememberWebViewState(url = url) + val state = rememberWebViewState(url = url, additionalHttpHeaders = headers) val navigator = rememberWebViewNavigator() Column { @@ -144,7 +144,7 @@ fun WebViewScreen( WebView.setWebContentsDebuggingEnabled(true) } - headers["User-Agent"]?.let { + headers["user-agent"]?.let { webView.settings.userAgentString = it } },