Bug 1442866 - Make the policiesStatus work on TB too. r=Felipe

This commit is contained in:
Richard Marti 2018-03-03 19:18:23 +01:00
parent d727d4abfb
commit f40e76c04e

View File

@ -251,7 +251,9 @@ var dataProviders = {
data.styloChromeResult = winUtils.isStyledByServo;
}
data.policiesStatus = Services.policies.status;
if (Services.policies) {
data.policiesStatus = Services.policies.status;
}
const keyGoogle = Services.urlFormatter.formatURL("%GOOGLE_API_KEY%").trim();
data.keyGoogleFound = keyGoogle != "no-google-api-key" && keyGoogle.length > 0;