Allow stream popouts

This commit is contained in:
smartfridge 2022-12-13 11:02:09 +01:00
parent 6c8eb71d46
commit 931e5df2f0

View file

@ -91,7 +91,8 @@ async function doAfterDefiningTheWindow() {
mainWindow.webContents.setWindowOpenHandler(({url}) => {
// 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.startsWith("https:" || url.startsWith("http:") || url.startsWith("mailto:"))) {
shell.openExternal(url);
} else {