Block most resource loading in reports

This commit is contained in:
Dan Stillman 2023-11-02 17:43:03 -04:00
parent f1203f0fb3
commit bf478392ce

View file

@ -34,6 +34,7 @@ Zotero.Report.HTML = new function () {
+ '<html>\n'
+ ' <head>\n'
+ ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n'
+ ' <meta http-equiv="Content-Security-Policy" content="default-src \'none\'; img-src data:; style-src \'unsafe-inline\' data:" />\n'
+ ' <title>' + Zotero.getString('report.title.default') + '</title>\n'
+ ' <link rel="stylesheet" type="text/css" href="' + _getCSSDataURI('detail') + '"/>\n'
+ ' <link rel="stylesheet" type="text/css" media="screen,projection" href="' + _getCSSDataURI('detail_screen') + '"/>\n'