diff --git a/bspwn/index.js b/bspwn/index.js index 3bbae39..2f29174 100644 --- a/bspwn/index.js +++ b/bspwn/index.js @@ -47,7 +47,12 @@ exports.go = function() { details, 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 }); }); diff --git a/bspwn/updater.html b/bspwn/updater.html index 0b682a3..ac7e54a 100644 --- a/bspwn/updater.html +++ b/bspwn/updater.html @@ -229,11 +229,12 @@ // TODO: make this...not constant const approot = 'https://xn--lmbda-2be.cf/'; + const settings = require(data + "/settings.json"); // continue to discord function load() { 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