From 2f50863c78cf9497db41149112f37a1c55ffdae9 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 19 Feb 2021 14:17:16 -0500 Subject: =?UTF-8?q?Don=E2=80=99t=20use=20=E2=80=98originalTarget=E2=80=98?= =?UTF-8?q?=20on=20Safari,=20just=20=E2=80=98target=E2=80=99=20for=20event?= =?UTF-8?q?s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lethality-selector.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lethality-selector.mjs b/lethality-selector.mjs index 9f5813d..80c3e71 100644 --- a/lethality-selector.mjs +++ b/lethality-selector.mjs @@ -27,7 +27,8 @@ class LethalitySelector { } select(evt) { - this.onItemSelected(evt.originalTarget.id == 'lethal') + window.evt = evt + this.onItemSelected(evt.target.id == 'lethal') } } -- cgit v1.2.3