mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
fix: saving ics files
solves https://github.com/ArmCord/ArmCord/issues/613
This commit is contained in:
parent
d53addccf5
commit
31cef3a093
1 changed files with 5 additions and 0 deletions
|
@ -97,6 +97,10 @@ function doAfterDefiningTheWindow(passedWindow: BrowserWindow): void {
|
|||
passedWindow.webContents.setWindowOpenHandler(({url}) => {
|
||||
// Allow about:blank (used by Vencord QuickCss popup)
|
||||
if (url === "about:blank") return {action: "allow"};
|
||||
// Saving ics files on future events
|
||||
if (url.startsWith("blob:https://discord.com/")) {
|
||||
return {action: "allow", overrideBrowserWindowOptions: {show: false}};
|
||||
}
|
||||
// Allow Discord stream popout
|
||||
if (
|
||||
url === "https://discord.com/popout" ||
|
||||
|
@ -139,6 +143,7 @@ function doAfterDefiningTheWindow(passedWindow: BrowserWindow): void {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
return {action: "deny"};
|
||||
});
|
||||
if (getConfig("useLegacyCapturer") == false) {
|
||||
|
|
Loading…
Reference in a new issue