Skip to content

Commit

Permalink
fix: check for null not constructor name when query root element (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmorand authored Sep 15, 2023
1 parent 236210c commit 042b040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function (Glide, Components, Events) {
r = document.querySelector(r)
}

if (exist(r)) {
if (r !== null) {
Html._r = r
} else {
warn('Root element must be a existing Html node')
Expand Down

0 comments on commit 042b040

Please sign in to comment.