summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-09-06 17:12:45 +0200
committerPierre Ossman <ossman@cendio.se>2018-09-06 17:12:45 +0200
commit4a16dc51a8e514cd52aaba54cc6c863bf212e288 (patch)
tree922cba6c8cfdddc592b71b61cd950a4cf94c224b
parent35068204f4dcd7610d3dfd3713d5a540ce7bf002 (diff)
downloadnovnc-4a16dc51a8e514cd52aaba54cc6c863bf212e288.tar.gz
Enforce no trailing whitespace
-rw-r--r--.eslintrc1
-rw-r--r--app/ui.js2
-rw-r--r--app/webutil.js2
-rw-r--r--core/rfb.js2
-rw-r--r--utils/use_require_helpers.js4
5 files changed, 6 insertions, 5 deletions
diff --git a/.eslintrc b/.eslintrc
index 85c46b1..c28a798 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -36,5 +36,6 @@
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
"key-spacing": ["error"],
"keyword-spacing": ["error"],
+ "no-trailing-spaces": ["error"],
}
}
diff --git a/app/ui.js b/app/ui.js
index 9b59743..d5fd4da 100644
--- a/app/ui.js
+++ b/app/ui.js
@@ -1329,7 +1329,7 @@ const UI = {
// Move the caret to the end
input.setSelectionRange(l, l);
} catch (err) {
- // setSelectionRange is undefined in Google Chrome
+ // setSelectionRange is undefined in Google Chrome
}
},
diff --git a/app/webutil.js b/app/webutil.js
index 33d9292..278f10e 100644
--- a/app/webutil.js
+++ b/app/webutil.js
@@ -26,7 +26,7 @@ export function getQueryVar (name, defVal) {
const re = new RegExp('.*[?&]' + name + '=([^&#]*)'),
match = document.location.href.match(re);
if (typeof defVal === 'undefined') { defVal = null; }
-
+
if (match) {
return decodeURIComponent(match[1]);
}
diff --git a/core/rfb.js b/core/rfb.js
index f9a134b..5049c33 100644
--- a/core/rfb.js
+++ b/core/rfb.js
@@ -1437,7 +1437,7 @@ export default class RFB extends EventTargetMixin {
case 2: // Bell
Log.Debug("Bell");
this.dispatchEvent(new CustomEvent(
- "bell",
+ "bell",
{ detail: {} }));
return true;
diff --git a/utils/use_require_helpers.js b/utils/use_require_helpers.js
index 90342cb..a11a9ba 100644
--- a/utils/use_require_helpers.js
+++ b/utils/use_require_helpers.js
@@ -34,7 +34,7 @@ module.exports = {
noCopyOverride: () => {},
},
'commonjs': {
- optionsOverride: (opts) => {
+ optionsOverride: (opts) => {
// CommonJS supports properly shifting the default export to work as normal
opts.plugins.unshift("add-module-exports");
},
@@ -68,7 +68,7 @@ module.exports = {
},
},
'umd': {
- optionsOverride: (opts) => {
+ optionsOverride: (opts) => {
// umd supports properly shifting the default export to work as normal
opts.plugins.unshift("add-module-exports");
},