Update target because of the arrow function

This commit is contained in:
Filip Troníček 2021-02-08 17:21:40 +01:00
parent 8338573c10
commit 9cc109c254

View File

@ -158,8 +158,8 @@
document.getElementById(element).innerHTML = output;
}
document.getElementById("devicesUrl").onclick = () => {
this.select();
document.getElementById("devicesUrl").onclick = (e) => {
e.target.select();
document.execCommand("copy");
};