зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1702183 - Accommodate !MOZ_BACKGROUNDTASKS in UpdateService.jsm. r=application-update-reviewers,bytesized
This was simply oversight from Bug 1700987. Differential Revision: https://phabricator.services.mozilla.com/D110597
This commit is contained in:
Родитель
c0d7459c98
Коммит
70266578ce
|
@ -2547,9 +2547,9 @@ UpdateService.prototype = {
|
|||
observe: async function AUS_observe(subject, topic, data) {
|
||||
// Background tasks do not notify any delayed startup notificatons. The
|
||||
// intentional fallthrough blocks below make it awkward to define this locally.
|
||||
let bts = Cc["@mozilla.org/backgroundtasks;1"].getService(
|
||||
Ci.nsIBackgroundTasks
|
||||
);
|
||||
const bts =
|
||||
"@mozilla.org/backgroundtasks;1" in Cc &&
|
||||
Cc["@mozilla.org/backgroundtasks;1"].getService(Ci.nsIBackgroundTasks);
|
||||
let isBackgroundTaskMode = bts && bts.isBackgroundTaskMode;
|
||||
|
||||
switch (topic) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче