Bug 1254359 - notifications.getAll() result is not Chrome-compatible, r=kmag
MozReview-Commit-ID: EIeIZquJaIN
This commit is contained in:
@@ -111,7 +111,10 @@ extensions.registerSchemaAPI("notifications", "notifications", (extension, conte
|
||||
},
|
||||
|
||||
getAll: function() {
|
||||
let result = Array.from(notificationsMap.get(extension).keys());
|
||||
let result = {};
|
||||
notificationsMap.get(extension).forEach((value, key) => {
|
||||
result[key] = value.options;
|
||||
});
|
||||
return Promise.resolve(result);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user