react pwa check if is app code example
Example: how to check if user has installed pwa
if (window.matchMedia('(display-mode: standalone)').matches) {
// do things here
}
if (window.matchMedia('(display-mode: standalone)').matches) {
// do things here
}