Skip to content

Commit

Permalink
update feature detection
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 22, 2024
1 parent d41b8cd commit ea81bff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invoker.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(() => {
if (
typeof HTMLButtonElement === "undefined" ||
typeof HTMLButtonElement.prototype !== "object" ||
"commandForElement" in HTMLButtonElement.prototype
"source" in ((globalThis.CommandEvent || {}).prototype || {})
) {
return;
}
Expand Down

0 comments on commit ea81bff

Please sign in to comment.