mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
remove unnecessary listner
This commit is contained in:
parent
719d0f4ad5
commit
478a07ea81
@ -9,12 +9,7 @@ const background = new SWcontroller({
|
|||||||
letBeIdle: false,
|
letBeIdle: false,
|
||||||
intervalDelay,
|
intervalDelay,
|
||||||
})
|
})
|
||||||
window.onfocus = () => {
|
|
||||||
background.sendMessage('wakeUp')
|
|
||||||
.catch((err) => {
|
|
||||||
console.error('problem with wake up', err)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
const pageStream = new ParentStream()
|
const pageStream = new ParentStream()
|
||||||
background.on('ready', (_) => {
|
background.on('ready', (_) => {
|
||||||
let swStream = SwStream({
|
let swStream = SwStream({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user