mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Merge branch 'canary' of https://github.com/smartfrigde/armcord into canary
This commit is contained in:
commit
21435ca167
2 changed files with 12 additions and 1 deletions
|
@ -8,3 +8,14 @@ chrome.webRequest.onHeadersReceived.addListener((h) => {
|
||||||
}, {urls: ["*://*.discord.com/*"]},
|
}, {urls: ["*://*.discord.com/*"]},
|
||||||
['blocking', 'responseHeaders']
|
['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:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const armcord = require("./armcord.js");
|
const armcord = require("./ArmCord.js");
|
||||||
const themeFolder = __dirname + "/themes/";
|
const themeFolder = __dirname + "/themes/";
|
||||||
|
|
||||||
window.addEventListener("DOMContentLoaded", () => {
|
window.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
Loading…
Reference in a new issue