make the popout window always on top

This commit is contained in:
smartfrigde 2024-01-28 15:51:00 +01:00
parent a1349a1da3
commit 2f93146a15

View file

@ -101,7 +101,12 @@ async function doAfterDefiningTheWindow(): Promise<void> {
url === "https://canary.discord.com/popout" || url === "https://canary.discord.com/popout" ||
url === "https://ptb.discord.com/popout" url === "https://ptb.discord.com/popout"
) )
return {action: "allow"}; return {
action: "allow",
overrideBrowserWindowOptions: {
alwaysOnTop: true
}
};
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 if (ignoreProtocolWarning) { } else if (ignoreProtocolWarning) {