@capgo/inappbrowser 7.10.3 → 7.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -550,6 +550,8 @@ open class WKWebViewController: UIViewController, WKScriptMessageHandler {
550
550
 
551
551
  webConfiguration.allowsInlineMediaPlayback = true
552
552
  webConfiguration.userContentController = userContentController
553
+ webConfiguration.preferences.setValue(true, forKey: "allowFileAccessFromFileURLs")
554
+ webConfiguration.setValue(true, forKey: "allowUniversalAccessFromFileURLs")
553
555
 
554
556
  let webView = WKWebView(frame: .zero, configuration: webConfiguration)
555
557
 
@@ -1097,7 +1099,7 @@ fileprivate extension WKWebViewController {
1097
1099
  var tryToOpenURLWithApp = false
1098
1100
 
1099
1101
  // Handle all non-http(s) schemes by default
1100
- if let scheme = url.scheme?.lowercased(), !scheme.hasPrefix("http") {
1102
+ if let scheme = url.scheme?.lowercased(), !scheme.hasPrefix("http") && !scheme.hasPrefix("file") {
1101
1103
  tryToOpenURLWithApp = true
1102
1104
  }
1103
1105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/inappbrowser",
3
- "version": "7.10.3",
3
+ "version": "7.10.4",
4
4
  "description": "Capacitor plugin in app browser",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",