forked from Github/frigate
Mobile/PWA spacing fixes (#11403)
* spacing on mobile landscape * better icon placement when running as pwa * better icon placement when running as pwa * portrait padding only
This commit is contained in:
3
web/src/utils/isPWA.ts
Normal file
3
web/src/utils/isPWA.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const isPWA =
|
||||
("standalone" in window.navigator && window.navigator.standalone) ||
|
||||
window.matchMedia("(display-mode: standalone)").matches;
|
||||
Reference in New Issue
Block a user