mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
improve events
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { send } from '@/lib/utils/events'
|
||||
import events from '@/lib/utils/events'
|
||||
let refresh = false
|
||||
|
||||
function invokeServiceWorkerUpdateFlow (registration) {
|
||||
@@ -44,6 +44,6 @@ if ('serviceWorker' in navigator) {
|
||||
})
|
||||
|
||||
window.addEventListener('appinstalled', () => {
|
||||
send('pwa.install')
|
||||
events.send('pwa.install')
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user