From ea81bffa812530a5c388dc5e0aff436d74471346 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 22 Aug 2024 21:14:28 +0100 Subject: [PATCH] update feature detection --- invoker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invoker.js b/invoker.js index d1ca9fe..aa215f5 100644 --- a/invoker.js +++ b/invoker.js @@ -1,8 +1,7 @@ (() => { if ( typeof HTMLButtonElement === "undefined" || - typeof HTMLButtonElement.prototype !== "object" || - "commandForElement" in HTMLButtonElement.prototype + "source" in ((globalThis.CommandEvent || {}).prototype || {}) ) { return; }