summaryrefslogtreecommitdiff
path: root/common/modules
diff options
context:
space:
mode:
authorZheng Chaoping <zbinlin@gmail.com>2016-10-25 16:28:50 +0800
committerZheng Chaoping <zbinlin@gmail.com>2016-10-25 16:28:50 +0800
commitc71011752a4c3479beea0c6c0bb9e2551eb084a9 (patch)
treea1e3c939d5cf90681a9ec0c1f19f3a25b31353d9 /common/modules
parent720d4a862994b2daf1de58c1dbc500909a486083 (diff)
downloadpentadactyl-c71011752a4c3479beea0c6c0bb9e2551eb084a9.tar.gz
Fix can't access lexical declaration `locale' before initialization
Diffstat (limited to 'common/modules')
-rw-r--r--common/modules/protocol.jsm4
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;