|
|
@@ -465,7 +465,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (this.options.stylesheetContents) {
|
|
|
let indexStyle = 0;
|
|
|
this.doc.querySelectorAll("style").forEach(styleElement => {
|
|
|
- styleElement.textContent = this.options.stylesheetContents[indexStyle];
|
|
|
+ if (this.options.stylesheetContents[indexStyle]) {
|
|
|
+ styleElement.textContent = this.options.stylesheetContents[indexStyle];
|
|
|
+ }
|
|
|
indexStyle++;
|
|
|
});
|
|
|
}
|