Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit ecbf5b4

Browse files
authored
Enhance UpdaterWebView with JavaScript support
Updated WKWebView configuration to enable JavaScript and improved cache clearing logic.
1 parent 5ca183e commit ecbf5b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/prostore/views/UpdaterView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct UpdaterWebView: UIViewRepresentable {
1818

1919
func makeUIView(context: Context) -> WKWebView {
2020
let config = WKWebViewConfiguration()
21-
config.preferences.javaScriptEnabled = true
21+
config.defaultWebpagePreferences.allowsContentJavaScript = true
2222
config.allowsInlineMediaPlayback = true
2323

2424
let webView = WKWebView(frame: .zero, configuration: config)
@@ -135,3 +135,4 @@ struct UpdaterWebView: UIViewRepresentable {
135135
}
136136
}
137137

138+

0 commit comments

Comments
 (0)