1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-27 01:32:26 +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) {
for (let locale of [locale, "en-US"])
for (let loc of [locale, "en-US"])
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);
if (channel)
return channel;