Remove unused csp.js

This commit is contained in:
smartfridge 2021-07-14 18:46:55 +02:00
parent 5b9e1c13c0
commit d2dcb69d38

View file

@ -1,15 +0,0 @@
const { session } = require("electron");
session.defaultSession.webRequest.onHeadersReceived.addListener(
(h) => {
h.responseHeaders.forEach((e, i) => {
if (e.name.toLowerCase() === "content-security-policy") {
e.value = "";
}
});
return { responseHeaders: h.responseHeaders };
},
{ urls: ["*://*.discord.com/*"] },
["blocking", "responseHeaders"]
);
//csp thingz