diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-10-05 14:03:47 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-10-05 14:03:47 +0800 |
commit | 7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0 (patch) | |
tree | 0dff417975467cf0d7a7d2acaddc65efdace1ca2 /mascara/src/ui.js | |
parent | 2dba03ffc530e3e2a176aea9712ffc3e189bebc2 (diff) | |
download | tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.gz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.bz2 tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.lz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.xz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.zst tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.zip |
mascara: linting and code clean up
Diffstat (limited to 'mascara/src/ui.js')
-rw-r--r-- | mascara/src/ui.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mascara/src/ui.js b/mascara/src/ui.js index 2f940ad1a..b272a2e06 100644 --- a/mascara/src/ui.js +++ b/mascara/src/ui.js @@ -17,17 +17,17 @@ var name = 'popup' window.METAMASK_UI_TYPE = name window.METAMASK_PLATFORM_TYPE = 'mascara' -let intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000 +const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000 const background = new SWcontroller({ fileName: '/background.js', letBeIdle: false, intervalDelay, - wakeUpInterval: 20000 + wakeUpInterval: 20000, }) // Setup listener for when the service worker is read const connectApp = function (readSw) { - let connectionStream = SwStream({ + const connectionStream = SwStream({ serviceWorker: background.controller, context: name, }) @@ -57,7 +57,7 @@ background.on('updatefound', windowReload) background.startWorker() -function windowReload() { +function windowReload () { if (window.METAMASK_SKIP_RELOAD) return window.location.reload() } @@ -66,4 +66,4 @@ function timeout (time) { return new Promise((resolve) => { setTimeout(resolve, time || 1500) }) -}
\ No newline at end of file +} |