try to fix embeds?

This commit is contained in:
MathMan05 2024-08-24 13:38:56 -05:00
parent 5762a2a61c
commit d735a0353c

View file

@ -13,7 +13,7 @@ app.use("/getupdates",(req, res) => {
}); });
let debugging=true;//Do not turn this off, the service worker is all kinds of jank as is, it'll really mess your day up if you disable this let debugging=true;//Do not turn this off, the service worker is all kinds of jank as is, it'll really mess your day up if you disable this
function isembed(str){ function isembed(str){
return str===("Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)")||str===("Mozilla/5.0 (compatible; Spacebar/1.0; +https://github.com/spacebarchat/server)"); return str.includes("discord")||str.includes("Spacebar");
} }
async function getapiurls(str){ async function getapiurls(str){
if(str[str.length-1]!=="/"){ if(str[str.length-1]!=="/"){