This commit is contained in:
Cynthia Foxwell 2018-07-17 17:53:11 -06:00
parent cc6f449cff
commit 11b28a1b09
2 changed files with 8 additions and 2 deletions

View file

@ -47,7 +47,12 @@ exports.go = function() {
details, details,
callback callback
) { ) {
details.responseHeaders["content-security-policy"] = "*"; details.responseHeaders["content-security-policy-report-only"] = "";
details.responseHeaders["content-security-policy"] = "";
delete details.responseHeaders[
"content-security-policy-report-only"
];
callback({ responseHeaders: details.responseHeaders }); callback({ responseHeaders: details.responseHeaders });
}); });

View file

@ -229,11 +229,12 @@
// TODO: make this...not constant // TODO: make this...not constant
const approot = 'https://xn--lmbda-2be.cf/'; const approot = 'https://xn--lmbda-2be.cf/';
const settings = require(data + "/settings.json");
// continue to discord // continue to discord
function load() { function load() {
var branch = DiscordNative.globals.releaseChannel; var branch = DiscordNative.globals.releaseChannel;
electron.getCurrentWindow().loadURL('https://' + (branch != 'stable' && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me'); electron.getCurrentWindow().loadURL(settings.WEBAPP_ENDPOINT || ('https://' + (branch != 'stable' && branch != 'development' ? branch + '.' : '') + 'discordapp.com/channels/@me'));
} }
// make the plugins and styles dirs if they dont exist // make the plugins and styles dirs if they dont exist