|
|
@@ -463,12 +463,10 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
|
|
|
replaceStyleContents() {
|
|
|
if (this.options.stylesheetContents) {
|
|
|
- let indexStyle = 0;
|
|
|
- this.doc.querySelectorAll("style").forEach(styleElement => {
|
|
|
- if (this.options.stylesheetContents[indexStyle]) {
|
|
|
- styleElement.textContent = this.options.stylesheetContents[indexStyle];
|
|
|
+ this.doc.querySelectorAll("style").forEach((styleElement, styleIndex) => {
|
|
|
+ if (this.options.stylesheetContents[styleIndex]) {
|
|
|
+ styleElement.textContent = this.options.stylesheetContents[styleIndex];
|
|
|
}
|
|
|
- indexStyle++;
|
|
|
});
|
|
|
}
|
|
|
}
|