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

Update webview manual post-WKWebView #80

Merged
merged 1 commit into from
Jul 9, 2020
Merged

Conversation

dapetcu21
Copy link
Contributor

@dapetcu21 dapetcu21 commented Mar 16, 2020

WKWebView returns eval results as Foundation.framework primitives (NSNumber, NSString, etc), which serialise differently from JS serialisation. As a result, JS true is returned as a NSNumber which serialises as 1, when converted to a string.

WKWebView returns eval results as Foundation.framework primitives (NSNumber, NSString, etc), which serialise differently. As a result, JS `true` is returned as a `NSNumber` which serialises as `1`, when converted to a string.
@CLAassistant
Copy link

CLAassistant commented Mar 16, 2020

CLA assistant check
All committers have signed the CLA.

@britzl
Copy link
Contributor

britzl commented Mar 16, 2020

I wonder if we can't solve this in the extension instead? Can we check the type of the NSObject *resultObject and convert based on this?

@britzl britzl merged commit e577735 into defold:master Jul 9, 2020
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

Successfully merging this pull request may close these issues.

3 participants