From f06941906421b83044ad4e011655dc37fa76c194 Mon Sep 17 00:00:00 2001 From: Kai Labusch Date: Thu, 31 Oct 2019 16:10:24 +0100 Subject: [PATCH] make ner.edit to not act on empty urls --- ner-edith.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ner-edith.js b/ner-edith.js index 9fc0783..aeb442c 100644 --- a/ner-edith.js +++ b/ner-edith.js @@ -31,6 +31,9 @@ function setupInterface(data, file) { console.log(img_url); + if (img_url == "http://empty") + return + $("#preview").attr("src", img_url); $("#preview-link").attr("href", img_url); }