Bug 1252635 - confirm mozApps is defined before checking for updates; r=marco

This commit is contained in:
Myk Melez 2016-03-01 14:30:20 -08:00
parent 1286a545f5
commit c200991831

View File

@ -102,6 +102,10 @@ this.WebappRT = {
return;
}
if (!window.navigator.mozApps) {
return;
}
// Check for updates once a day.
let timerManager = Cc["@mozilla.org/updates/timer-manager;1"].
getService(Ci.nsIUpdateTimerManager);