Skip to content

Commit

Permalink
fix typos. Fixes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jul 31, 2024
1 parent 15a020a commit 4d2b38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invoker.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
document.addEventListener(
"command",
(e) => {
if (e.type == "invoke" && e.isTrusted) {
if (e.type == "command" && e.isTrusted) {
e.stopImmediatePropagation();
}
},
Expand Down Expand Up @@ -266,7 +266,7 @@
const attr = source.hasAttribute("command") ? "command" : "commandfor";
const missing = source.hasAttribute("command") ? "commandfor" : "command";
throw new Error(
`Element with ${attr} attribute must also have a ${missing} attribute to functon.`,
`Element with ${attr} attribute must also have a ${missing} attribute to function.`,
);
}

Expand Down

0 comments on commit 4d2b38d

Please sign in to comment.