From a06860d5212efa9e15489a791e80944b436f8330 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 16 Nov 2020 11:01:53 +0000 Subject: Fixed JS error on Chromium, see https://stackoverflow.com/questions/13340131/string-prototype-replaceall-not-working --- bh20simplewebuploader/static/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bh20simplewebuploader/static') diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index aa1f06f..efbf615 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -92,8 +92,9 @@ function demofetchHTMLTable(apiEndPoint) { return response.json(); }) .then(data => { + console.log(data); htmlString="

Description

"+data[0][0]["description"]+"

" - prefix=data[0][1]["prefix"].replaceAll("<","<") + prefix=data[0][1]["prefix"].replace(/"//prefix to construct correct query @data[0][1]["prefix"] htmlString+="

SPARQL query

"+data[0][2]["query"]+"
" htmlString+="

SPARQL results table

" -- cgit v1.2.3