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

Target #iced container by default on Wasm #2342

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Mar 19, 2024

This PR changes the default behavior when running an iced application on Wasm.

Instead of always appending to the body, the runtime will look for an element with the #iced identifier and replace it with the application canvas.

This is convenient for initializing an iced application with default settings without having to establish communication between Javascript and Wasm.

Additionally, this PR updates our winit fork; which includes an important bugfix for initializing multiple applications in the same web document.

@hecrj hecrj added bug Something isn't working shell web change labels Mar 19, 2024
@hecrj hecrj added this to the 0.13 milestone Mar 19, 2024
@hecrj hecrj merged commit af6bc46 into master Mar 19, 2024
24 checks passed
@hecrj hecrj deleted the default-wasm-canvas-target branch March 19, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working change shell web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant