]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix typos in imports and i18n
authorSolly Ross <sross@redhat.com>
Sat, 4 Feb 2017 04:12:53 +0000 (23:12 -0500)
committerSolly Ross <sross@redhat.com>
Sun, 26 Feb 2017 21:30:37 +0000 (16:30 -0500)
`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.

app/ui.js
core/util.js

index 33cd1d48451c9e2f99c02b699ff6c02f0807f7aa..56bd9f74c4a7776e290f757bd49ff69469b1cd1d 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -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";
index 8edaace7cdabbdf202098a418cf808aabf7485f8..550ef9168b5b151f9a75c12015a791cb11154fa9 100644 (file)
@@ -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) {