Tweaked jsTree settings, disabled web workers

This commit is contained in:
Dario Corti
2021-04-03 16:36:30 +02:00
parent 7259d0199d
commit c116e919cd
2 changed files with 20 additions and 17 deletions

View File

@@ -71,6 +71,9 @@ print <<EOF;
\$('#jstree').jstree({
'plugins' : [ 'checkbox' ],
'core' : {
'animation': 100,
'worker' : false,
'force_text': true,
'data' : {
'url' : function (node) {
const r = [];

View File

@@ -958,7 +958,7 @@ if (!$gconfig{'no_frame_options'}) {
print "X-Frame-Options: SAMEORIGIN\n";
}
if (!$gconfig{'no_content_security_policy'}) {
print "Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; child-src 'self' blob:\n";
print "Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; frame-src 'self'; child-src 'self'\n";
}
print "X-Content-Type-Options: nosniff\n";
if (defined($cs)) {