This commit is contained in:
Dimitris Apostolou
2022-02-03 00:01:22 +02:00
parent 0858866b41
commit 99120c0c80

View File

@@ -19,8 +19,8 @@ class PreloadedWebView: WKWebView {
preferences.javaScriptCanOpenWindowsAutomatically = false
/// The defaults for `preferredContentMode` and `allowsContentJavaScript` are suitable
/// and don't need to be explicity set.
/// `allowsContentJavaScript` replaces `WKPreferences.javascriptEnbaled`.
/// and don't need to be explicitly set.
/// `allowsContentJavaScript` replaces `WKPreferences.javascriptEnabled`.
let webpagePreferences = WKWebpagePreferences()
let configuration = WKWebViewConfiguration()