|
|
@@ -152,7 +152,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
const docData = docUtil.preProcessDoc(this.options.doc, this.options.win, this.options);
|
|
|
this.options.canvasData = docData.canvasData;
|
|
|
this.options.fontsData = docData.fontsData;
|
|
|
- this.options.stylesheetContents = docData.stylesheetContents;
|
|
|
+ this.options.stylesheetsData = docData.stylesheetsData;
|
|
|
this.options.imageData = docData.imageData;
|
|
|
this.options.postersData = docData.postersData;
|
|
|
this.options.usedFonts = docData.usedFonts;
|
|
|
@@ -508,10 +508,10 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
|
|
|
|
replaceStyleContents() {
|
|
|
- if (this.options.stylesheetContents) {
|
|
|
+ if (this.options.stylesheetsData) {
|
|
|
this.doc.querySelectorAll("style").forEach((styleElement, styleIndex) => {
|
|
|
- if (this.options.stylesheetContents[styleIndex]) {
|
|
|
- styleElement.textContent = this.options.stylesheetContents[styleIndex];
|
|
|
+ if (this.options.stylesheetsData[styleIndex]) {
|
|
|
+ styleElement.textContent = this.options.stylesheetsData[styleIndex];
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
@@ -863,7 +863,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
options.content = frameData.content;
|
|
|
options.postersData = frameData.postersData;
|
|
|
options.canvasData = frameData.canvasData;
|
|
|
- options.stylesheetContents = frameData.stylesheetContents;
|
|
|
+ options.stylesheetsData = frameData.stylesheetsData;
|
|
|
options.fontsData = frameData.fontsData;
|
|
|
options.imageData = frameData.imageData;
|
|
|
options.usedFonts = frameData.usedFonts;
|
|
|
@@ -902,7 +902,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
docUtil.postProcessDoc(doc, options);
|
|
|
options.postersData = docData.postersData;
|
|
|
options.canvasData = docData.canvasData;
|
|
|
- options.stylesheetContents = docData.stylesheetContents;
|
|
|
+ options.stylesheetsData = docData.stylesheetsData;
|
|
|
options.fontsData = docData.fontsData;
|
|
|
options.imageData = docData.imageData;
|
|
|
options.usedFonts = docData.usedFonts;
|