diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-09-06 17:12:45 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-09-06 17:12:45 +0200 |
commit | 4a16dc51a8e514cd52aaba54cc6c863bf212e288 (patch) | |
tree | 922cba6c8cfdddc592b71b61cd950a4cf94c224b /app | |
parent | 35068204f4dcd7610d3dfd3713d5a540ce7bf002 (diff) | |
download | novnc-4a16dc51a8e514cd52aaba54cc6c863bf212e288.tar.gz |
Enforce no trailing whitespace
Diffstat (limited to 'app')
-rw-r--r-- | app/ui.js | 2 | ||||
-rw-r--r-- | app/webutil.js | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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]); } |