emscripten-core / emscripten-core/emscripten
matchMedia not a function
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
In https://github.com/emscripten-core/emscripten/pull/18826, glfw was updated to 3.3 as well as including changes for scaling dpi.
However, these changes does not seem to be compatible with the proxy options in emscripten (PROXY_TO_WORKER and PROXY_TO_PTHREAD).
Reason being, when using the proxy flags, the javascript file will be loaded in a web worker and APIs like `window.matchMedia` and `window.devicePixelRatio` are not available in web workers.
Reproducer in CI: https://github.com/emscripten-core/emscripten/pull/19911
Contributor guide
Assessment
This issue has not been assessed yet.