Skip to content

matchMedia not a function #19912

@Mintyboi

Description

@Mintyboi

In #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: #19911

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions