Skip to content

Commit 39981af

Browse files
author
Schalk Neethling
committed
fix(examples): Small update to querySelector example
1 parent c04f36e commit 39981af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

live-examples/webapi-examples/document/queryselector/js/document-queryselector.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(function() {
22
function getHeader() {
3-
let shadowRoot = getShadowRoot();
4-
return shadowRoot.querySelector('header');
3+
let documentRoot = getShadowRoot();
4+
return documentRoot.querySelector('header');
55
}
66

77
let header = getHeader();

0 commit comments

Comments
 (0)