mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Allow stream popouts
This commit is contained in:
parent
6c8eb71d46
commit
931e5df2f0
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ async function doAfterDefiningTheWindow() {
|
||||||
mainWindow.webContents.setWindowOpenHandler(({url}) => {
|
mainWindow.webContents.setWindowOpenHandler(({url}) => {
|
||||||
// Allow about:blank (used by Vencord QuickCss popup)
|
// Allow about:blank (used by Vencord QuickCss popup)
|
||||||
if (url === "about:blank") return {action: "allow"};
|
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:"))) {
|
if (url.startsWith("https:" || url.startsWith("http:") || url.startsWith("mailto:"))) {
|
||||||
shell.openExternal(url);
|
shell.openExternal(url);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue