Distinguish between PWA and a regular website1 // for PWA `standalone` property is `true` 2 const isPWA = window.navigator.standalone;