mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-27 06:02:27 +01:00
Merge pull request #192 from zbinlin/patch-4
Fix can't access lexical declaration `locale' before initialization
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user