Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why don't work in iPad Air (14.1) ? #419

Open
boyXiong opened this issue Aug 3, 2021 · 2 comments
Open

Why don't work in iPad Air (14.1) ? #419

boyXiong opened this issue Aug 3, 2021 · 2 comments

Comments

@boyXiong
Copy link

boyXiong commented Aug 3, 2021

WVJB Bug Report

Thanks for reporting an issue with WebViewJavascriptBridge.

Do these 4 things and I will fix your problem!

  1. Go to https://github.com/marcuswestin/WebViewJavascriptBridge and click Fork.
  2. Clone your fork, cd into it and run make test. All tests should pass!
  3. Edit Tests/WebViewJavascriptBridgeTests/BridgeTests.m and create a new, failing test which demostrates your issue.
  4. Create a pull request for https://github.com/marcuswestin/WebViewJavascriptBridge

That's it!

I will take it from there and promise that I'll fix your problem ASAP.

If you don't do this then I can't help you!

And I probably won't :)

Cheers,
@marcuswestin

@BoxDengJZ
Copy link

#383

@BoxDengJZ
Copy link


        let configuration = WKWebViewConfiguration()
        configuration.preferences.javaScriptEnabled = true
        if #available(iOS 13.0, *) {
            configuration.defaultWebpagePreferences.preferredContentMode = .mobile
        }
        
        let w = WKWebView(frame: .zero, configuration: configuration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants