trim string in clipboard

This commit is contained in:
Denis Fedoseev 2017-08-03 09:10:23 +03:00
parent ba5a95a165
commit 1e8ea69ee1

View file

@ -101,7 +101,7 @@
//TODO: rewrite it to vue/JS from jquery
var $temp = $("<input>");
$("body").append($temp);
$temp.val($(event.target).text()).select();
$temp.val($(event.target).text().trim()).select();
document.execCommand("copy");
$temp.remove();
},