Skip to content

Commit 1e96b57

Browse files
author
Schalk Neethling
authored
Merge pull request #131 from schalkneethling/small-example-update
fix(examples): Small update to querySelector example
2 parents c04f36e + 39981af commit 1e96b57

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)