-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #24
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/sentinel.umd.js b/dist/sentinel.umd.js | ||
index 08dcbff40b764a4eabf7990e751c364c4724c885..d5ce9732e2726d9497dc14bcbbcdd155247c3b52 100644 | ||
--- a/dist/sentinel.umd.js | ||
+++ b/dist/sentinel.umd.js | ||
@@ -46,7 +46,7 @@ return { | ||
|
||
// add stylesheet to document | ||
styleEl = doc.createElement('style'); | ||
- head.insertBefore(styleEl, head.firstChild); | ||
+ head.append(styleEl); | ||
styleSheet = styleEl.sheet; | ||
cssRules = styleSheet.cssRules; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/sentinel.umd.js b/dist/sentinel.umd.js | ||
index 08dcbff40b764a4eabf7990e751c364c4724c885..d5ce9732e2726d9497dc14bcbbcdd155247c3b52 100644 | ||
--- a/dist/sentinel.umd.js | ||
+++ b/dist/sentinel.umd.js | ||
@@ -46,7 +46,7 @@ return { | ||
|
||
// add stylesheet to document | ||
styleEl = doc.createElement('style'); | ||
- head.insertBefore(styleEl, head.firstChild); | ||
+ head.append(styleEl); | ||
styleSheet = styleEl.sheet; | ||
cssRules = styleSheet.cssRules; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
b822e5b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentinel will try to inject the style element at the start of the
head
which will be blown away by things likenext/head
.