adding trim to clipboard value

This commit is contained in:
Pawel Raczyk 2020-04-14 13:35:59 +02:00
parent 3f134ca8f2
commit 377785874c
1 changed files with 1 additions and 3 deletions

View File

@ -978,8 +978,7 @@ const UI = {
writeText() {
const text = document.getElementById('noVNC_clipboard_text').value;
Log.Debug(">> UI.clipboardSend: " + text.substr(0, 40) + "...");
const textClip = text.split("");
const textClip = text.trim().split("");
function f(t) {
const character = t.shift();
if (character === undefined) return;
@ -1081,7 +1080,6 @@ const UI = {
if (port) {
url += ':' + port;
}
if (path.startsWith("?token")) {
url += '/websockify' + path;
} else {