From d55e4545829b1386750bdbf4184c91168f41e565 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Fri, 3 Feb 2017 23:12:53 -0500 Subject: [PATCH] Fix typos in imports and i18n `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 | 2 +- core/util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui.js b/app/ui.js index 33cd1d48..56bd9f74 100644 --- 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"; diff --git a/core/util.js b/core/util.js index 8edaace7..550ef916 100644 --- a/core/util.js +++ b/core/util.js @@ -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) {