fixes api

This commit is contained in:
booploops 2022-04-01 04:46:36 -07:00
parent 0abef214cf
commit 9deda97a4c

View file

@ -412,7 +412,7 @@ export class BrowserWindow {
console.error('Req not defined') console.error('Req not defined')
return return
} }
if (req.url.includes("audio.wav") || (req.headers.host.includes("localhost") && (this.devMode || req.headers["user-agent"].includes("Electron")))) { if (req.url.includes("api") || req.url.includes("audio.wav") || (req.headers.host.includes("localhost") && (this.devMode || req.headers["user-agent"].includes("Electron")))) {
next(); next();
} else { } else {
res.redirect("https://discord.gg/applemusic"); res.redirect("https://discord.gg/applemusic");