aboutsummaryrefslogtreecommitdiffstats
path: root/library/popup.js
diff options
context:
space:
mode:
Diffstat (limited to 'library/popup.js')
-rw-r--r--library/popup.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/popup.js b/library/popup.js
index bb7051055..a9d934c43 100644
--- a/library/popup.js
+++ b/library/popup.js
@@ -21,7 +21,10 @@ const background = new SWcontroller({
background.on('ready', (readSw) => {
// var inpageProvider = new MetamaskInpageProvider(SwStream(background.controller))
// startPopup(inpageProvider)
- startPopup(SwStream(background.controller))
+ swStream = SwStream({
+ serviceWorker: background.controller,
+ })
+ startPopup()
})
background.on('message', (messageEvent) => {debugger})
background.startWorker()