1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-17 21:33:32 +01:00

Fix can't access lexical declaration `locale' before initialization

This commit is contained in:
Zheng Chaoping
2016-10-25 16:28:50 +08:00
parent 720d4a8629
commit c71011752a

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;