refactor: notify.helpers.js logic. Add a timeout and a better notification management to avoid race condition on Unix Systems

This commit is contained in:
MasterAcnolo
2026-08-05 22:16:15 +02:00
parent cf8c95711c
commit 6a9e5a063b

View File

@@ -20,7 +20,7 @@ const activeNotifications = new Set();
function notifyDownloadFinished(folder, notifyEnabled = true) {
if (!notifyEnabled) return;
if (!folder) return;
const notif = new Notification({
title: "Freedom Loader",
body: "Your download is complete, click here to open it.",