replaceAll was a bit too new

This commit is contained in:
Ruben van de Ven 2021-03-10 21:41:08 +01:00
parent c76fe414c5
commit c588c09f66

View file

@ -85,9 +85,9 @@ function splitText(text) {
function getTitle(obj) { function getTitle(obj) {
if(obj.parent) { if(obj.parent) {
return "sub of " + obj.parent.split('#', 1)[0].replaceAll('_', ' '); return "sub of " + obj.parent.split('#', 1)[0].replace(/_/g, " ")
} }
return obj['@id'].split('#', 1)[0].replaceAll('_', ' '); return obj['@id'].split('#', 1)[0].replace(/_/g, " ")
} }
function getClasses(obj) { function getClasses(obj) {
if (!obj._INST) if (!obj._INST)