Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 31e8176

Browse files
committed
Merge branch 'master' into dynamic
2 parents c77748d + 061c2f9 commit 31e8176

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/HTMLImports.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ var flags = scope.flags;
1111
var useNative = !flags.imports && hasNative;
1212

1313
var IMPORT_LINK_TYPE = 'import';
14+
// TODO(sorvell): SD polyfill intrusion
15+
var mainDoc = window.ShadowDOMPolyfill ?
16+
ShadowDOMPolyfill.wrapIfNeeded(document) : document;
1417

1518
if (!useNative) {
1619
// imports
@@ -36,9 +39,6 @@ if (!useNative) {
3639
// inline style sheets get path fixups when their containing import modifies paths
3740

3841
var STYLE_LINK_TYPE = 'stylesheet';
39-
// TODO(sorvell): SD polyfill intrusion
40-
var mainDoc = window.ShadowDOMPolyfill ?
41-
window.ShadowDOMPolyfill.wrapIfNeeded(document) : document;
4242

4343
var importer = {
4444
documents: {},

0 commit comments

Comments
 (0)