mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Do not show an error if the URL is unable to load
This commit is contained in:
@@ -109,7 +109,11 @@ app.on("web-contents-created", (event, contents) => {
|
||||
if (url.includes("page=Download")) {
|
||||
return { action: "allow" };
|
||||
} else {
|
||||
BrowserWindow.getFocusedWindow().loadURL(url);
|
||||
BrowserWindow.getFocusedWindow()
|
||||
.loadURL(url)
|
||||
.catch((err) => {
|
||||
// do not show error
|
||||
});
|
||||
if (getValue("discordrpcstatus") === "true") {
|
||||
setActivity(
|
||||
`On "${BrowserWindow.getFocusedWindow().webContents.getTitle()}"`
|
||||
|
||||
Reference in New Issue
Block a user