nuxt-modules / device

Nuxt module for detecting device type.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature request] Add isStandalone field

mahammad-sixberries opened this issue · comments

isInWebAppiOS = (window.navigator.standalone === true);
isInWebAppChrome = (window.matchMedia('(display-mode: standalone)').matches);

return isInWebAppiOS || isInWebAppChrome