Release v0.2.12: Update package-lock.json and CI config

This commit is contained in:
Joan
2025-12-30 19:08:56 +01:00
parent 2766b4035f
commit ee55c5f887

View File

@@ -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 = () => {