Allow Canary and PTB to use window popout (#372)

* Update window.ts

allow popout window for canary and ptb as they are selectable via armcord settings

* Update window.ts

fixed because i forget
This commit is contained in:
BMT 2023-04-06 21:41:33 +02:00 committed by GitHub
parent f540c88e0d
commit 66821e2dce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ async function doAfterDefiningTheWindow() {
// Allow about:blank (used by Vencord QuickCss popup)
if (url === "about:blank") return {action: "allow"};
// Allow Discord stream popout
if (url === "https://discord.com/popout") return {action: "allow"};
if ((url === "https://discord.com/popout") || (url === "https://canary.discord.com/popout") || (url === "https://ptb.discord.com/popout")) return {action: "allow"};
if (url.startsWith("https:") || url.startsWith("http:") || url.startsWith("mailto:")) {
shell.openExternal(url);
} else {