diff --git a/Multiplatform/Shared/Article/PreloadedWebView.swift b/Multiplatform/Shared/Article/PreloadedWebView.swift index 4e7d9150a..baa99a48b 100644 --- a/Multiplatform/Shared/Article/PreloadedWebView.swift +++ b/Multiplatform/Shared/Article/PreloadedWebView.swift @@ -8,6 +8,7 @@ import Foundation import WebKit +import RSWeb class PreloadedWebView: WKWebView { @@ -28,6 +29,10 @@ class PreloadedWebView: WKWebView { configuration.setURLSchemeHandler(articleIconSchemeHandler, forURLScheme: ArticleRenderer.imageIconScheme) super.init(frame: .zero, configuration: configuration) + + if let userAgent = UserAgent.fromInfoPlist() { + customUserAgent = userAgent + } } required init?(coder: NSCoder) {