Skip to content

Commit

Permalink
Adding Alert title
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekCornerGH committed May 19, 2021
1 parent 46808f9 commit 211d5ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async function createWindow() {
}
showNotification();
dialog.showMessageBox(mainWindow, {
title: "No internet connextion",
type: "error",
message: "No internet connexion avaliable. Make sure you have access to internet",
buttons: ["Ok"],
Expand All @@ -115,6 +116,7 @@ async function createWindow() {
update = await fetch("https://ping.ytgeek.gq/versions.json").then(async(res) => await res.json())
if (package.version !== update.threema) {
let upgrade = dialog.showMessageBox(mainWindow, {
title: "Update avaliable",
buttons: ["Yes", "No", "Show changelog"],
noLink: true,
message: "An update is avaliable. Please download it to continue using Threema For Desktop. Else, you won't be able to use Threema For Desktop."
Expand Down

0 comments on commit 211d5ca

Please sign in to comment.