diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-04-28 20:05:10 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-04-28 20:12:25 +0800 |
commit | 36bafbaebf826933262c4ad381a8953e82f8ebc3 (patch) | |
tree | 87203d73e7f44720ad25f8d7acf49e732516b5db /mascara/src/proxy.js | |
parent | 53537824f179038d227c9a340302d039ab151ede (diff) | |
download | tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar.gz tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar.bz2 tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar.lz tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar.xz tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.tar.zst tangerine-wallet-browser-36bafbaebf826933262c4ad381a8953e82f8ebc3.zip |
General cleanup and window reload if an update is found
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r-- | mascara/src/proxy.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js index ec5665240..eabc547b4 100644 --- a/mascara/src/proxy.js +++ b/mascara/src/proxy.js @@ -20,6 +20,7 @@ background.on('ready', (_) => { pageStream.pipe(swStream).pipe(pageStream) }) +background.on('updatefound', () => window.location.reload()) background.on('error', console.error) background.startWorker() |