diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-06-29 04:08:43 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-06-29 04:08:43 +0800 |
commit | 4be704097fa8892928f10020f3c0803451cfc31d (patch) | |
tree | da997391fd2c11576ea1a1d8726455e18fc6bef7 /app/scripts/popup.js | |
parent | f9540cf48c9f7e42c41e9e1648bb57ee2b5d441f (diff) | |
parent | 2fd03a60fb8c536dbe56c86e1836935616ea14d8 (diff) | |
download | tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.gz tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.bz2 tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.lz tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.xz tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.tar.zst tangerine-wallet-browser-4be704097fa8892928f10020f3c0803451cfc31d.zip |
Merge branch 'master' into title-truncate
Diffstat (limited to 'app/scripts/popup.js')
-rw-r--r-- | app/scripts/popup.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/scripts/popup.js b/app/scripts/popup.js index 5173507fa..5c5cf0455 100644 --- a/app/scripts/popup.js +++ b/app/scripts/popup.js @@ -65,11 +65,21 @@ function getCurrentDomain (cb) { }) } +function clearNotifications(){ + chrome.notifications.getAll(function (object) { + for (let notification in object){ + chrome.notifications.clear(notification) + } + }) +} + function setupApp (err, opts) { if (err) { alert(err.stack) throw err } + + clearNotifications() var container = document.getElementById('app-content') |