Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Apr 26, 2024
1 parent 95fc7e8 commit d7b3f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/nodes/document/Document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export default class Document extends Node {
* @returns True if the command is supported, false otherwise.
*/
public queryCommandSupported(command: string): boolean {
if (!command) {
if (!arguments.length) {
throw new TypeError(
"Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present."
);
Expand Down

0 comments on commit d7b3f05

Please sign in to comment.