8000 fix: mitigate alert and confirm apis not working in embeded live preview in windows desktop by abose · Pull Request #1750 · phcode-dev/phoenix · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@abose
Copy link
Member
@abose abose commented Jul 15, 2024

Address: https://github.com/orgs/phcode-dev/discussions/1734

tracking tauri issue: https://discordapp.com/channels/616186924390023171/1258736272814374964

In Windows desktop apps, DOM alert and Confirm api is not working from iframe. Prompt API works. It works as expected in Mac/Linux.

The fix is that since prompt api works, i have used a hack to use prompt api when someone calls alert(). Sine alert() pauses js ontext, this has to be done and we could not rely on a pure js rendered alert dialog box.

@phoenixide
Copy link
Member

Thank You for making this pull request.

@sonarqubecloud
Copy link

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

0