NeverDecaf / discord-PWA

A wrapper for the Discord web client as a PWA, made for Chromium browsers on desktop.
MIT License
145 stars 13 forks source link

Chrome 105 CSS media selectors completely broken #43

Closed NeverDecaf closed 1 year ago

NeverDecaf commented 1 year ago

When the PWA is launched, display mode needs to be detected to determine if it was launched inside the browser or as a standalone PWA. Chrome 105 seems to break any form of display mode reporting as both methods being used no longer work: via js (window.matchMedia("(display-mode: standalone)").matches) and css ((display-mode: standalone))

NeverDecaf commented 1 year ago

The actual cause was the addition of a new display mode: window-controls-overlay