Do not log if internet is connected

This commit is contained in:
Agampreet Singh
2023-06-11 21:49:09 +05:30
parent 0e02c64999
commit 5b4db16b64

View File

@@ -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();