Skip to content

Commit

Permalink
Fix missing parenthesis when invoking toLowerCase
Browse files Browse the repository at this point in the history
  • Loading branch information
allansson committed Jan 8, 2021
1 parent e11d663 commit 329c82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ import { globalObject } from "../libs/globalObject.js";
case "string":
return "string";
case "element":
return src.nodeName.toLowerCase === "canvas" ? "canvas" : "element";
return src.nodeName.toLowerCase() === "canvas" ? "canvas" : "element";
default:
return "unknown";
}
Expand Down

0 comments on commit 329c82f

Please sign in to comment.