We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc887ca commit c6dbf45Copy full SHA for c6dbf45
src/polyfills.ts
@@ -8,7 +8,9 @@
8
// src: http://stackoverflow.com/questions/6481612/queryselector-search-immediate-children
9
10
/*eslint-disable */
11
-;(function (doc, proto) {
+
12
+if (typeof window !== 'undefined')
13
+(function (doc, proto) {
14
try { // check if browser supports :scope natively
15
doc.querySelector(':scope body')
16
} catch (err) { // polyfill native methods if it doesn't
0 commit comments