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
1 changed files with 2 additions and 2 deletions

View File

@ -85,9 +85,9 @@ function splitText(text) {
function getTitle(obj) {
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) {
if (!obj._INST)