How do I know if PWA is installed? 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
}