Commit 4b683ed0 authored by Alex Catarineu's avatar Alex Catarineu Committed by Georg Koppen
Browse files

Bug 40003: Adapt code for L10nRegistry API changes

Caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1648631.
parent 11848e8c
......@@ -97,7 +97,11 @@ function StartupObserver() {
"resource://torbutton/locale/{locale}/",
true, // skip this FileSource locales when computing Services.locale.availableLocales
);
L10nRegistry.registerSource(torSource);
if (L10nRegistry.registerSources) {
L10nRegistry.registerSources([torSource]);
} else {
L10nRegistry.registerSource(torSource);
}
}
StartupObserver.prototype = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment