Fix code typo

This commit is contained in:
andy 2024-12-10 10:30:50 +02:00
parent e1784967d2
commit b5176fafd5

View File

@ -724,19 +724,21 @@ define([
});
});
assert(function (cb, msg) { // FIXME possibly superseded by more advanced CSP tests?
msg.appendChild(CSP_WARNING(sheetURL));
deferredPostMessage({
command: 'GET_HEADER',
content: {
url: sheetURL,
header: 'content-security-policy',
},
}, function (content) {
var CSP_headers = parseCSP(content);
cb(hasOnlyOfficeHeaders(CSP_headers) || CSP_headers);
if (ooEnabled) {
assert(function (cb, msg) { // FIXME possibly superseded by more advanced CSP tests?
msg.appendChild(CSP_WARNING(sheetURL));
deferredPostMessage({
command: 'GET_HEADER',
content: {
url: sheetURL,
header: 'content-security-policy',
},
}, function (content) {
var CSP_headers = parseCSP(content);
cb(hasOnlyOfficeHeaders(CSP_headers) || CSP_headers);
});
});
});
}
/*
assert(function (cb, msg) {