bootstrap: disable CSP with css too

This commit is contained in:
Ducko 2022-09-28 16:21:30 +01:00
parent f425859c93
commit a021777ede
1 changed files with 1 additions and 1 deletions

2
src/bootstrap.js vendored
View File

@ -28,7 +28,7 @@ const autoStart = require('./autoStart');
let desktopCore;
const startCore = () => {
if (oaConfig.js) session.defaultSession.webRequest.onHeadersReceived((d, cb) => {
if (oaConfig.js || oaConfig.css) session.defaultSession.webRequest.onHeadersReceived((d, cb) => {
delete d.responseHeaders['content-security-policy'];
cb(d);
});