Merge branch 'canary' of https://github.com/smartfrigde/armcord into canary

This commit is contained in:
KayoticCarnige 2021-05-23 18:32:44 -04:00
commit 21435ca167
2 changed files with 12 additions and 1 deletions

View file

@ -8,3 +8,14 @@ chrome.webRequest.onHeadersReceived.addListener((h) => {
}, {urls: ["*://*.discord.com/*"]},
['blocking', 'responseHeaders']
)
const corsAllowUrls = [
'https://github.com/GooseMod/GooseMod/releases/download/dev/index.js',
'https://github-releases.githubusercontent.com/'
];
if (corsAllowUrls.some((x) => url.startsWith(x))) {
responseHeaders['access-control-allow-origin'] = ['*'];
}
//psst stolen from https://raw.githubusercontent.com/Goose-Nest/GooseUpdate/main/branches/goosemod/patch.js
//dont tell anyone :troll:

View file

@ -1,5 +1,5 @@
const fs = require("fs");
const armcord = require("./armcord.js");
const armcord = require("./ArmCord.js");
const themeFolder = __dirname + "/themes/";
window.addEventListener("DOMContentLoaded", () => {