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 () {
|
app.on("ready", function () {
|
||||||
checkInternetConnected()
|
checkInternetConnected().catch(() => {
|
||||||
.then(() => {
|
const options = {
|
||||||
console.log("You are connected to the internet!");
|
type: "warning",
|
||||||
})
|
buttons: ["Ok"],
|
||||||
.catch(() => {
|
defaultId: 2,
|
||||||
const options = {
|
title: "Warning",
|
||||||
type: "warning",
|
message: "You appear to be offline!",
|
||||||
buttons: ["Ok"],
|
detail:
|
||||||
defaultId: 2,
|
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
|
||||||
title: "Warning",
|
};
|
||||||
message: "You appear to be offline!",
|
dialog.showMessageBox(null, options, (response) => {
|
||||||
detail:
|
console.log(response);
|
||||||
"Please check your Internet Connectivity. This app cannot run without an Internet Connection!",
|
|
||||||
};
|
|
||||||
dialog.showMessageBox(null, options, (response) => {
|
|
||||||
console.log(response);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
});
|
||||||
autoUpdater.checkForUpdatesAndNotify();
|
autoUpdater.checkForUpdatesAndNotify();
|
||||||
if (getValue("discordrpcstatus") === "true") {
|
if (getValue("discordrpcstatus") === "true") {
|
||||||
loginToRPC();
|
loginToRPC();
|
||||||
|
|||||||
Reference in New Issue
Block a user