Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing not loading of pdf in chrome ext

uggrock1fc9767b7d04
diff --git a/data/ext/viewerBrowser/extension.js b/data/ext/viewerBrowser/extension.js
index 0a8d4fed9..27acc7c92 100644
--- a/data/ext/viewerBrowser/extension.js
+++ b/data/ext/viewerBrowser/extension.js
@@ -45,7 +45,7 @@ define(function(require, exports, module) {
if((fileExt.indexOf("htm") == 0 || fileExt.indexOf("xhtm") == 0 || fileExt.indexOf("txt") == 0) && !isFirefox) {
$containerElement.append($('<iframe>', {
- sandbox: "allow-same-origin",
+ sandbox: "allow-same-origin allow-scripts",
id: "iframeViewer",
"nwdisable": "",
"nwfaketop": ""
@@ -66,7 +66,7 @@ define(function(require, exports, module) {
);
} else {
$containerElement.append($('<iframe>', {
- sandbox: "allow-same-origin",
+ // sandbox: "allow-same-origin allow-scripts", // comment out due not loading pdfs in chrome ext
id: "iframeViewer",
src: filePathURI,
"nwdisable": "",