PWA check 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
}