Skip to content

Commit 047ca68

Browse files
Kaizefir-git
andauthored
Update exception message
Co-authored-by: Zefir <[email protected]>
1 parent 2ba035a commit 047ca68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NodeComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export abstract class NodeComponent<T extends Node> {
8181
*/
8282
public slot(slot: string, parent: ParentNode = document) {
8383
const slotNode = parent.querySelector(`slot[name="${slot}"]`);
84-
if (slotNode == null) throw new DOMException(`NodeComponent.slot: Could not find slot ${slot}`);
84+
if (slotNode === null) throw new DOMException(`Could not find slot "${slot}"`);
8585
slotNode.replaceWith(this.node);
8686
return this;
8787
}

0 commit comments

Comments
 (0)