Skip to content

Commit 122acc9

Browse files
committed
Merge pull request #165 from vimperator/let-protocol-url
Dont redeclare or use let vars improperly
2 parents 2f38736 + 4c9b385 commit 122acc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/components/protocols.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,11 @@ Liberator.prototype = {
251251
}
252252
return fakeChannel(uri);
253253
}
254+
255+
let url;
254256
switch(uri.host) {
255257
case "help":
256-
let url = this.FILE_MAP[uri.path.replace(/^\/|#.*/g, "")];
258+
url = this.FILE_MAP[uri.path.replace(/^\/|#.*/g, "")];
257259
return makeChannel(url, uri);
258260
case "help-overlay":
259261
url = this.OVERLAY_MAP[uri.path.replace(/^\/|#.*/g, "")];

0 commit comments

Comments
 (0)