summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-09-04 17:44:17 +0200
committerWojtek Kosior <koszko@koszko.org>2021-09-04 17:44:17 +0200
commitd141aada17154872623cddfadb224170580814e3 (patch)
tree30463af37b7430fbb5162ab7d4bd712aaa98fb7f /html
parente48e20de13de78a46cd1dec47ef609eb156ca839 (diff)
downloadbrowser-extension-d141aada17154872623cddfadb224170580814e3.tar.gz
browser-extension-d141aada17154872623cddfadb224170580814e3.zip
show appropriate message when repository returns no custom content for given URL
Diffstat (limited to 'html')
-rw-r--r--html/display-panel.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/html/display-panel.js b/html/display-panel.js
index 66e51a6..7d801c9 100644
--- a/html/display-panel.js
+++ b/html/display-panel.js
@@ -497,6 +497,11 @@ var max_query_result_id = 0;
function show_query_successful_result(result_item, repo_url, result)
{
+ if (result.length === 0) {
+ show_message(result_item, "No results :(");
+ return;
+ }
+
const cloned_ul_template = clone_template("result_patterns_list");
set_appended(result_item, cloned_ul_template.ul);