Update:Disable epubs from running scripts by default, add library setting to enable it GHSA-7j99-76cj-q9pg

This commit is contained in:
advplyr 2024-05-26 16:01:08 -05:00
parent 8ec9da143f
commit ce7f891b9b
30 changed files with 104 additions and 28 deletions

View file

@ -63,6 +63,9 @@ export default {
libraryItemId() {
return this.libraryItem?.id
},
allowScriptedContent() {
return this.$store.getters['libraries/getLibraryEpubsAllowScriptedContent']
},
hasPrev() {
return !this.rendition?.location?.atStart
},
@ -316,7 +319,7 @@ export default {
reader.rendition = reader.book.renderTo('viewer', {
width: this.readerWidth,
height: this.readerHeight * 0.8,
allowScriptedContent: true,
allowScriptedContent: this.allowScriptedContent,
spread: 'auto',
snap: true,
manager: 'continuous',