forked from mosra/magnum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Platform: get EmscriptenApplication canvas target from Module['canvas'].
And properly account for -s DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR. Module['canvas'] can be read even from code compiled with -s MODULARIZE so it's a preferrable option to hardcoding it in Configuration. The target strings in Emscripten depend on whether we're compiled with DISABLE_DEPRECATED_FIND_EVENT_TARGET_BEHAVIOR (see emscripten-core/emscripten#7977). This is now detected and handled at runtime to prepend element IDs with and use the correct window and document magic targets.
- Loading branch information
Showing
2 changed files
with
87 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters