1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-06 09:15:50 +01:00

Merge pull request #192 from zbinlin/patch-4

Fix can't access lexical declaration `locale' before initialization
This commit is contained in:
dkearns
2016-10-25 20:11:13 +11:00
committed by GitHub

View File

@@ -151,9 +151,9 @@ ProtocolBase.prototype = {
}; };
function LocaleChannel(pkg, locale, path, orig) { function LocaleChannel(pkg, locale, path, orig) {
for (let locale of [locale, "en-US"]) for (let loc of [locale, "en-US"])
for (let sep of "-/") { for (let sep of "-/") {
var channel = Channel(["resource:/", pkg + sep + locale, path].join("/"), var channel = Channel(["resource:/", pkg + sep + loc, path].join("/"),
orig, true, true); orig, true, true);
if (channel) if (channel)
return channel; return channel;