From b3296f2b4de9f6cea19c98b7db89aaf48ff28861 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 15 May 2023 15:20:36 +0200 Subject: [PATCH] changed: use alert to display info --- main.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/main.js b/main.js index d9e227b..25b3448 100644 --- a/main.js +++ b/main.js @@ -500,7 +500,7 @@ function showinfo() "session start: " + stat.ses.t, "session queries: " + stat.ses.q, "session data sent: " + formatsize(stat.ses.d) - ], "Note info"); + ].join("\n")); } function loadtheme(theme) @@ -840,20 +840,9 @@ function editsettings() }); } -function showtemporaryinfo(data, title) +function showtemporaryinfo(info) { - if (typeof data == "string") - { - data = new Array(data); - } - - filter.placeholder = title || "Info"; - searchinlist(data) - .then(() => - { - filter.placeholder = "Search..."; - }); - //md.focus(); + alert(info); } function getwords() @@ -1041,7 +1030,7 @@ function remotecallfailed(error) if (error) { console.warn(error); - showtemporaryinfo(error, "Error"); + showtemporaryinfo("Error: " + error); } }