Rezmason / matrix

matrix (web-based green code rain, made with love)
https://rezmason.github.io/matrix
MIT License
3.29k stars 212 forks source link

Broken on Mac Safari #17

Closed willfaught closed 2 years ago

willfaught commented 2 years ago

macOS Monterey 12.5.1 (21G83)

Safari Version 15.6.1 (17613.3.9.1.16)

In the console:

Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'navigator.gpu.getPreferredCanvasFormat')

(main.js:58)

Nothing displays. Black, blank screen.

Rezmason commented 2 years ago

Bug repro'd. Ah, so Safari's got WebGPU types now.

Fixed, had to make the WebGPU feature detector more stringent. Thanks for the bug report, remember to clear your browser cache if it doesn't seem fixed.

willfaught commented 2 years ago

Thanks! Works now.