From 9cc109c254da6c06cdcd6b44583938753aa2296b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Tron=C3=AD=C4=8Dek?= Date: Mon, 8 Feb 2021 17:21:40 +0100 Subject: [PATCH] Update target because of the arrow function --- devices.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices.html b/devices.html index 3aea201..49a254c 100644 --- a/devices.html +++ b/devices.html @@ -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"); };