Release v0.2.12: Update package-lock.json and CI config
This commit is contained in:
@@ -6,8 +6,10 @@ import './i18n' // Initialize i18n
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
import twemoji from 'twemoji'
|
||||
|
||||
// Register service worker
|
||||
registerSW({
|
||||
// Only register service worker when not in Electron (file:// protocol doesn't support SW)
|
||||
const isElectron = window.location.protocol === 'file:'
|
||||
if (!isElectron) {
|
||||
registerSW({
|
||||
onNeedRefresh() {
|
||||
if (confirm('New version available! Reload to update?')) {
|
||||
window.location.reload()
|
||||
@@ -16,7 +18,8 @@ registerSW({
|
||||
onOfflineReady() {
|
||||
console.log('App ready to work offline')
|
||||
},
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// Initialize Twemoji after React renders
|
||||
const initTwemoji = () => {
|
||||
|
||||
Reference in New Issue
Block a user