is-standalone
A tiny function that detects standalone mode for IOS & Android webApp
Installation
npm install is-standalone --save# oryarn add is-standalone -D
// for ES module;// for CMDconst isStandalone = ;// orwindowisStandalone
How this work?
{return navigatorstandalone || windowmatches;}
License
MIT