From b24ade080f203251110b6315aca13dfafd3627de Mon Sep 17 00:00:00 2001 From: prpr Date: Fri, 19 May 2023 01:43:15 +0100 Subject: [PATCH] Don't alert with null string --- webif/html/pkg/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webif/html/pkg/script.js b/webif/html/pkg/script.js index 114c442..bdbd557 100644 --- a/webif/html/pkg/script.js +++ b/webif/html/pkg/script.js @@ -139,7 +139,8 @@ function execopkg(arg, pkg) error: function(_, _, e) { if (window.console) console.log("ajax error"); - alert(e); + if (e.length) + alert(e); } }); busy = false;