aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src
diff options
context:
space:
mode:
Diffstat (limited to 'mascara/src')
-rw-r--r--mascara/src/ui.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/mascara/src/ui.js b/mascara/src/ui.js
index e798847a7..5f9be542f 100644
--- a/mascara/src/ui.js
+++ b/mascara/src/ui.js
@@ -40,7 +40,6 @@ const connectApp = function (readSw) {
})
})
}
-
background.on('ready', (sw) => {
background.removeListener('updatefound', connectApp)
connectApp(sw)
@@ -48,5 +47,10 @@ background.on('ready', (sw) => {
background.on('updatefound', () => window.location.reload())
background.startWorker()
-// background.startWorker()
+.then(() => {
+ setTimeout(() => {
+ const appContent = document.getElementById(`app-content`)
+ if (!appContent.children.length) window.location.reload()
+ }, 2000)
+})
console.log('hello from MetaMascara ui!')