[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix typos in imports and i18n
Browse files Browse the repository at this point in the history
`app/ui.js` had an incorrect import path which caused issues
when using the ES6 and/or CommonJS builds of noVNC.

`core/util.js` had a non-strict-compatible declaration of a variable
without a `let` or `var` (it now uses `let`).

This fixes both issues.
  • Loading branch information
DirectXMan12 committed Feb 26, 2017
1 parent b56d975 commit d55e454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* [module]
* import Util from "../core/util";
* import KeyTable from "../core/input/keysym";
* import keysyms from "./keysymdef";
* import keysyms from "../core/input/keysymdef";
* import RFB from "../core/rfb";
* import Display from "../core/display";
* import WebUtil from "./webutil";
Expand Down
2 changes: 1 addition & 1 deletion core/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ Util.Localisation = {
}

for (var i = 0;i < elem.childNodes.length;i++) {
node = elem.childNodes[i];
let node = elem.childNodes[i];
if (node.nodeType === node.ELEMENT_NODE) {
process(node, enabled);
} else if (node.nodeType === node.TEXT_NODE && enabled) {
Expand Down

0 comments on commit d55e454

Please sign in to comment.