Skip to content

Commit 6be6008

Browse files
authored
Fix: Error in double page shadow
1 parent a786b79 commit 6be6008

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/reading.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5847,6 +5847,7 @@ module.exports = {
58475847
setIsLoaded: function(value){isLoaded=value},
58485848
isLoaded: function(value){return isLoaded},
58495849
manga: readingManga,
5850+
margin: readingMargin,
58505851
isLoad: isLoad,
58515852
onLoad: onLoad,
58525853
ebook: readingEbook,
@@ -5860,4 +5861,4 @@ module.exports = {
58605861
discord: discord,
58615862
progress: progress,
58625863
doublePage: doublePage,
5863-
};
5864+
};

scripts/reading/double-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function apply(options = false)
2222
return;
2323
}
2424

25-
const left = options ? options.left : _config.readingMargin.left;
25+
const left = options ? options.left : reading.margin().left;
2626
const translate = left ? 0 : -1;
2727

2828
style.innerHTML = `

0 commit comments

Comments
 (0)