Skip to content

Instantly share code, notes, and snippets.

View TiagoDanin's full-sized avatar
🎯
Focusing

Tiago Danin TiagoDanin

🎯
Focusing
View GitHub Profile
const appName = 'App Web'
const companyName = 'D6'
const version = '1.0.0'
const hasSw = (navigator.serviceWorker && navigator.serviceWorker.controller)
const mode = (window.matchMedia('(display-mode: standalone)').matches)
? 'standalone'
: 'web'
const sw = hasSw
? 'sw-on'