Partially fix invites on Windows

This commit is contained in:
smartfridge 2021-05-08 23:26:53 +02:00
parent 09a1b388e3
commit 472a46f0a8
2 changed files with 4 additions and 1 deletions

View file

@ -114,6 +114,10 @@ app.whenReady().then(() => {
// Approves the permissions request
callback(true);
}
if (!url.startsWith("discord://")) {
// Denies the permissions request
return callback(false);
}
});
app.on("activate", function () {
// On macOS it's common to re-create a window in the app when the

View file

@ -5,7 +5,6 @@ const { remote } = require("electron");
window.addEventListener('DOMContentLoaded', () => {
new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex("#202225"),
menu: false,
});
/**