-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Ability to load local files in a WebView on iOS devices #4444
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
Ability to load local files in a WebView on iOS devices #4444
Conversation
vakrilov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Can you please remove the maked comments. They are used to generate code snippets for the docs. However there is already a snippet called webview-localfile in this file - no need for another.
| public testLoadLocalFileWithSpaceInPath(done) { | ||
| let webView = this.testView; | ||
|
|
||
| // >> webview-localfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment
|
|
||
| // >> webview-localfile | ||
| webView.on(webViewModule.WebView.loadFinishedEvent, function (args: webViewModule.LoadEventData) { | ||
| // >> (hide) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment
| catch (e) { | ||
| done(e); | ||
| } | ||
| // << (hide) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment
| } | ||
| }); | ||
| webView.src = "~/ui/web-view/test with spaces.html"; | ||
| // << webview-localfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment
|
10x @EddyVerbruggen! |
…comments in test)
|
Thanks! The comments are gone now, good to learn what those are used for 👍 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #4443, unittest added.