mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove old notification cleanup code
This commit is contained in:
parent
742a0e0dfe
commit
fd5dad136f
@ -74,22 +74,12 @@ function getCurrentDomain (cb) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearNotifications(){
|
|
||||||
extension.notifications.getAll(function (object) {
|
|
||||||
for (let notification in object){
|
|
||||||
extension.notifications.clear(notification)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
function setupApp (err, opts) {
|
function setupApp (err, opts) {
|
||||||
if (err) {
|
if (err) {
|
||||||
alert(err.stack)
|
alert(err.stack)
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|
||||||
clearNotifications()
|
|
||||||
|
|
||||||
var container = document.getElementById('app-content')
|
var container = document.getElementById('app-content')
|
||||||
|
|
||||||
MetaMaskUi({
|
MetaMaskUi({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user