|
@@ -137,7 +137,7 @@ function getPageDataScript() {
|
|
|
.catch(error => callback({ error: error.toString() }));
|
|
.catch(error => callback({ error: error.toString() }));
|
|
|
|
|
|
|
|
async function getPageData() {
|
|
async function getPageData() {
|
|
|
- await singlefile.lib.initializeOptions(options, document, window);
|
|
|
|
|
|
|
+ options = await singlefile.lib.initializeOptions(options);
|
|
|
const pageData = await singlefile.lib.getPageData(options);
|
|
const pageData = await singlefile.lib.getPageData(options);
|
|
|
if (options.includeInfobar) {
|
|
if (options.includeInfobar) {
|
|
|
await singlefile.common.ui.content.infobar.includeScript(pageData);
|
|
await singlefile.common.ui.content.infobar.includeScript(pageData);
|