From 338d9b8c164b0417d014e25f51e7f56a0e0208d9 Mon Sep 17 00:00:00 2001 From: bogd Date: Thu, 4 Apr 2024 14:50:07 +0200 Subject: [PATCH] onfinished network operation callback on error --- network.js | 1 + 1 file changed, 1 insertion(+) diff --git a/network.js b/network.js index 73457d9..90e5dfc 100644 --- a/network.js +++ b/network.js @@ -150,6 +150,7 @@ function PostDataControlled(varlist, messtype, applytype, onfinished, enable) { .catch((err) => { Notify.create({ color: "negative", position: "top", message: err.message, icon: "report_problem", }); console.log(JSON.stringify(err)); + if (onfinished) onfinished(); }); }