adding trim to clipboard value
This commit is contained in:
parent
3f134ca8f2
commit
377785874c
|
|
@ -978,8 +978,7 @@ const UI = {
|
||||||
writeText() {
|
writeText() {
|
||||||
const text = document.getElementById('noVNC_clipboard_text').value;
|
const text = document.getElementById('noVNC_clipboard_text').value;
|
||||||
Log.Debug(">> UI.clipboardSend: " + text.substr(0, 40) + "...");
|
Log.Debug(">> UI.clipboardSend: " + text.substr(0, 40) + "...");
|
||||||
|
const textClip = text.trim().split("");
|
||||||
const textClip = text.split("");
|
|
||||||
function f(t) {
|
function f(t) {
|
||||||
const character = t.shift();
|
const character = t.shift();
|
||||||
if (character === undefined) return;
|
if (character === undefined) return;
|
||||||
|
|
@ -1081,7 +1080,6 @@ const UI = {
|
||||||
if (port) {
|
if (port) {
|
||||||
url += ':' + port;
|
url += ':' + port;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (path.startsWith("?token")) {
|
if (path.startsWith("?token")) {
|
||||||
url += '/websockify' + path;
|
url += '/websockify' + path;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue