-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
window.open is not working on mac #1522
Comments
Yes, that won't work as you are trying to load a file that does not exist. Your best bet would be to use a data-uri for the html, eg
|
@leaanthony Can you give me a demo code? thx! |
on windows the below code is working:
but on macos, it's not working, the new window not open |
No, sorry. I don't have any code that does this. |
Supplying a full URL also doesn't work on Mac (don't have windows, so I can't test there): window.open('https://www.google.com', '_blank') Thanks! |
Did you check Apple's documentation on whether WkWebView supports window.open? |
@leaanthony Sorry, my bad, I didn't check Wails's documentation! Turns out |
We don't officially support multi window so YMMV. |
Fixed by/Duplicate of #1480. |
Description
on windows :
on wails dev: work good, a browser window will open the test.html .
but ,on wails build, can not open the test.html file,browser window report error.
on mac dev and build mod : window.open not working.
To Reproduce
Expected behaviour
on windows and mac system, need window.open working properly.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: