diff options
author | Zheng Chaoping <zbinlin@gmail.com> | 2016-10-25 16:28:50 +0800 |
---|---|---|
committer | Zheng Chaoping <zbinlin@gmail.com> | 2016-10-25 16:28:50 +0800 |
commit | c71011752a4c3479beea0c6c0bb9e2551eb084a9 (patch) | |
tree | a1e3c939d5cf90681a9ec0c1f19f3a25b31353d9 /common/modules | |
parent | 720d4a862994b2daf1de58c1dbc500909a486083 (diff) | |
download | pentadactyl-c71011752a4c3479beea0c6c0bb9e2551eb084a9.tar.gz |
Fix can't access lexical declaration `locale' before initialization
Diffstat (limited to 'common/modules')
-rw-r--r-- | common/modules/protocol.jsm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/modules/protocol.jsm b/common/modules/protocol.jsm index c363ebff..235d2cd5 100644 --- a/common/modules/protocol.jsm +++ b/common/modules/protocol.jsm @@ -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; |