mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix about:blank popups (Vencord QuickCss) (#256)
This commit is contained in:
parent
5d80d44fc8
commit
a3eea0b6ca
1 changed files with 5 additions and 2 deletions
|
@ -84,6 +84,9 @@ async function doAfterDefiningTheWindow() {
|
|||
});
|
||||
}
|
||||
mainWindow.webContents.setWindowOpenHandler(({url}) => {
|
||||
// Allow about:blank (used by Vencord QuickCss popup)
|
||||
if (url === "about:blank") return { action: "allow" };
|
||||
|
||||
if (url.startsWith("https:" || url.startsWith("http:") || url.startsWith("mailto:"))) {
|
||||
shell.openExternal(url);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue