Bug 1440235 - Fix linting errors in calStartupService.js. r=philipp

This commit is contained in:
MakeMyDay 2018-04-08 20:24:52 +02:00
Родитель 907e130396
Коммит cf81410812
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -73,9 +73,12 @@ calStartupService.prototype = {
// Localization service // Localization service
let locales = { let locales = {
startup: function(aCompleteListener) { startup: function(aCompleteListener) {
let locales = Services.locale.getPackagedLocales(); let packaged = Services.locale.getPackagedLocales();
let fs = new FileSource("calendar", locales , "resource://calendar/chrome/calendar-{locale}/locale/{locale}/"); let fileSrc = new FileSource(
L10nRegistry.registerSource(fs); "calendar", packaged,
"resource://calendar/chrome/calendar-{locale}/locale/{locale}/"
);
L10nRegistry.registerSource(fileSrc);
aCompleteListener.onResult(null, Components.results.NS_OK); aCompleteListener.onResult(null, Components.results.NS_OK);
}, },
shutdown: function(aCompleteListener) { shutdown: function(aCompleteListener) {