mirror of
https://github.com/agam778/MS-365-Electron.git
synced 2026-02-17 09:02:10 +00:00
Do not log if internet is connected
This commit is contained in:
30
app/main.js
30
app/main.js
@@ -328,24 +328,20 @@ app.on("activate", () => {
|
||||
});
|
||||
|
||||
app.on("ready", function () {
|
||||
checkInternetConnected()
|
||||
.then(() => {
|
||||
console.log("You are connected to the internet!");
|
||||
})
|
||||
.catch(() => {
|
||||
const options = {
|
||||
type: "warning",
|
||||
buttons: ["Ok"],
|
||||
defaultId: 2,
|
||||
title: "Warning",
|
||||
message: "You appear to be offline!",
|
||||
detail:
|
||||
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
|
||||
};
|
||||
dialog.showMessageBox(null, options, (response) => {
|
||||
console.log(response);
|
||||
});
|
||||
checkInternetConnected().catch(() => {
|
||||
const options = {
|
||||
type: "warning",
|
||||
buttons: ["Ok"],
|
||||
defaultId: 2,
|
||||
title: "Warning",
|
||||
message: "You appear to be offline!",
|
||||
detail:
|
||||
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
|
||||
};
|
||||
dialog.showMessageBox(null, options, (response) => {
|
||||
console.log(response);
|
||||
});
|
||||
});
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
if (getValue("discordrpcstatus") === "true") {
|
||||
loginToRPC();
|
||||
|
||||
Reference in New Issue
Block a user