1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00

Merge pull request #1243 from futurepress/fix_addscript

Remove check for script properties
This commit is contained in:
Fred Chasen 2022-01-07 14:30:39 -08:00 committed by GitHub
commit 369fee5dbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,7 +91,7 @@ class IframeView {
// sandbox
this.iframe.sandbox = "allow-same-origin";
if (this.settings.allowScriptedContent && this.section.properties.indexOf("scripted") > -1) {
if (this.settings.allowScriptedContent) {
this.iframe.sandbox += " allow-scripts"
}