diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-06-29 03:57:06 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-06-29 03:57:06 +0800 |
commit | 16566ee7dbe00c40941b0ed3c7f3b96179cae3aa (patch) | |
tree | 9e9749754f8eb8b8360eb72c534de4f4ee94a2cd /app | |
parent | c11520306366ec4a3d75c7ee48f6c1b1dd56399e (diff) | |
download | tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar.gz tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar.bz2 tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar.lz tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar.xz tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.tar.zst tangerine-wallet-browser-16566ee7dbe00c40941b0ed3c7f3b96179cae3aa.zip |
Move clearNotifications to popup.js
Diffstat (limited to 'app')
-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') |