Search code examples
javascriptprogressive-web-apps

How to detect is the page is running on web app?


How to detect is the page is running on a web app like 'Add to Home Screen' feature on browsers? Tried searching, but no useful answers.


Solution

  • Fixed:

    in manifest.json, added ?mode=webapp in start-url.