lint compliance and dead code removal
parent
ae2e781803
commit
8ecf7a70c4
|
@ -191,7 +191,8 @@ define([
|
|||
]));
|
||||
}));
|
||||
|
||||
var ws = shared_websocket = new WebSocket(NetConfig.getWebsocketURL());
|
||||
var ws = new WebSocket(NetConfig.getWebsocketURL());
|
||||
shared_websocket = ws;
|
||||
var to = setTimeout(function () {
|
||||
console.error('Websocket TIMEOUT');
|
||||
evWSError.fire();
|
||||
|
@ -381,40 +382,6 @@ define([
|
|||
});
|
||||
});
|
||||
|
||||
assert(function (cb, msg) {
|
||||
msg.innerText = "This test is incorrect.";
|
||||
return void cb(true);
|
||||
/*
|
||||
msg.appendChild(h('span', [
|
||||
"The spreadsheet editor's code was not served with the required Content-Security Policy headers. ",
|
||||
"This is most often caused by incorrectly configured sandbox parameters (",
|
||||
h('code', 'httpUnsafeOrigin'),
|
||||
' and ',
|
||||
h('code', 'httpSafeOrigin'),
|
||||
' in ',
|
||||
CONFIG_PATH,
|
||||
"), or settings in your reverse proxy's configuration which don't match your application server's config. ",
|
||||
RESTART_WARNING(),
|
||||
]));
|
||||
|
||||
$.ajax(sheetURL, { // FIXME bust cache
|
||||
complete: function (xhr) {
|
||||
var csp = xhr.getResponseHeader('Content-Security-Policy');
|
||||
if (!/unsafe\-eval/.test(csp)) {
|
||||
// OnlyOffice requires unsafe-eval
|
||||
console.error('CSP', csp);
|
||||
return cb("expected 'unsafe-eval'");
|
||||
}
|
||||
if (!/unsafe\-inline/.test(csp)) {
|
||||
// OnlyOffice also requires unsafe-inline
|
||||
console.error('CSP', csp);
|
||||
return cb("expected 'unsafe-inline'");
|
||||
}
|
||||
cb(true);
|
||||
},
|
||||
}); */
|
||||
});
|
||||
|
||||
assert(function (cb, msg) {
|
||||
msg.appendChild(h('span', [
|
||||
h('code', '/api/broadcast'),
|
||||
|
|
Loading…
Reference in New Issue