summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-09-06 17:08:19 +0200
committerPierre Ossman <ossman@cendio.se>2018-09-06 17:08:19 +0200
commit35068204f4dcd7610d3dfd3713d5a540ce7bf002 (patch)
tree6069597aae7b35bfb4e85469187c04106cddef4c
parent942a3127796f9f1b6d6f326cc043d2859c7ee1cb (diff)
downloadnovnc-35068204f4dcd7610d3dfd3713d5a540ce7bf002.tar.gz
Enforce keyword spacing
-rw-r--r--.eslintrc1
-rw-r--r--app/ui.js4
-rwxr-xr-xutils/use_require.js2
3 files changed, 4 insertions, 3 deletions
diff --git a/.eslintrc b/.eslintrc
index 4edbb50..85c46b1 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -35,5 +35,6 @@
"func-names": ["error"],
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"key-spacing": ["error"],
+ "keyword-spacing": ["error"],
}
}
diff --git a/app/ui.js b/app/ui.js
index 64a3536..9b59743 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -1007,7 +1007,7 @@ const UI = {
url = UI.getSetting('encrypt') ? 'wss' : 'ws';
url += '://' + host;
- if(port) {
+ if (port) {
url += ':' + port;
}
url += '/' + path;
@@ -1497,7 +1497,7 @@ const UI = {
},
toggleExtraKeys() {
- if(document.getElementById('noVNC_modifiers')
+ if (document.getElementById('noVNC_modifiers')
.classList.contains("noVNC_open")) {
UI.closeExtraKeys();
} else {
diff --git a/utils/use_require.js b/utils/use_require.js
index 9d6f416..c97931c 100755
--- a/utils/use_require.js
+++ b/utils/use_require.js
@@ -182,7 +182,7 @@ function make_lib_files(import_format, source_maps, with_app_dir, only_legacy) {
const out_path = path.join(out_path_base, path.relative(in_path_base, filename));
const legacy_path = path.join(legacy_path_base, path.relative(in_path_base, filename));
- if(path.extname(filename) !== '.js') {
+ if (path.extname(filename) !== '.js') {
if (!js_only) {
console.log(`Writing ${out_path}`);
return copy(filename, out_path);