aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static/main.js
diff options
context:
space:
mode:
authorPjotr Prins2020-11-16 11:01:53 +0000
committerPjotr Prins2020-11-16 11:01:53 +0000
commita06860d5212efa9e15489a791e80944b436f8330 (patch)
tree0fb3d4d223c30dae8c3f4db637f52852585cfd24 /bh20simplewebuploader/static/main.js
parent9b0f79d557cfe370d09ff76fbc41c4ffd9f16f12 (diff)
downloadbh20-seq-resource-a06860d5212efa9e15489a791e80944b436f8330.tar.gz
bh20-seq-resource-a06860d5212efa9e15489a791e80944b436f8330.tar.lz
bh20-seq-resource-a06860d5212efa9e15489a791e80944b436f8330.zip
Fixed JS error on Chromium, see https://stackoverflow.com/questions/13340131/string-prototype-replaceall-not-working
Diffstat (limited to 'bh20simplewebuploader/static/main.js')
-rw-r--r--bh20simplewebuploader/static/main.js3
1 files changed, 2 insertions, 1 deletions
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="<h3>Description</h3><p>"+data[0][0]["description"]+"</p>"
- prefix=data[0][1]["prefix"].replaceAll("<","&lt;")
+ prefix=data[0][1]["prefix"].replace(/</g,"&lt;");
htmlString+="<h4>Namespace</h4><pre>"+prefix+"</pre>"//prefix to construct correct query @data[0][1]["prefix"]
htmlString+="<h3>SPARQL query</h3><pre>"+data[0][2]["query"]+"</pre>"
htmlString+="<h3>SPARQL results table</h3><table>"