chore: linting for build

This commit is contained in:
Matthew Raymer
2025-02-13 06:59:06 +00:00
parent 20d2f5be32
commit 887d37abe5

View File

@@ -84,21 +84,23 @@ function createWindow() {
} }
// Add CSP headers to allow API connections // Add CSP headers to allow API connections
mainWindow.webContents.session.webRequest.onHeadersReceived((details, callback) => { mainWindow.webContents.session.webRequest.onHeadersReceived(
callback({ (details, callback) => {
responseHeaders: { callback({
...details.responseHeaders, responseHeaders: {
'Content-Security-Policy': [ ...details.responseHeaders,
"default-src 'self';" + "Content-Security-Policy": [
"connect-src 'self' https://api.endorser.ch https://*.timesafari.app;" + "default-src 'self';" +
"img-src 'self' data: https: blob:;" + "connect-src 'self' https://api.endorser.ch https://*.timesafari.app;" +
"script-src 'self' 'unsafe-inline' 'unsafe-eval';" + "img-src 'self' data: https: blob:;" +
"style-src 'self' 'unsafe-inline';" + "script-src 'self' 'unsafe-inline' 'unsafe-eval';" +
"font-src 'self' data:;" "style-src 'self' 'unsafe-inline';" +
] "font-src 'self' data:;",
} ],
}) },
}) });
},
);
// Load the index.html // Load the index.html
mainWindow mainWindow