Notify Error + Cookies Gestion

This commit is contained in:
MasterAcnolo
2025-11-09 13:19:54 +01:00
parent cd8b2bf007
commit 9d6065c80a
7 changed files with 66 additions and 3 deletions

View File

@@ -13,4 +13,19 @@ function notifyDownloadFinished(folder) {
notif.show();
}
module.exports = { notifyDownloadFinished };
function notifyCookiesBrowserError(){
const iconPath = path.join(process.resourcesPath, "error.png");
const notif = new Notification({
title: "Cookies Error",
body: "Impossible de récupérer les cookies. Connectez-vous sur votre navigateur et cliquez ici pour voir le tuto.",
icon: iconPath,
});
notif.on("click", () => shell.openExternal("https://youtube.com/shorts/cN9f4s1Mf88?si=519QCVd_-fzJqRf1"));
notif.show();
}
module.exports = {
notifyDownloadFinished,
notifyCookiesBrowserError
};