7.x.version viewer tei editor

This type of auto-assign is only supported in Firefox.
maybe try -
function add_tab(type, endpoint, add_class = "", data_type = "json") {
   add_class = typeof add_class !== 'undefined' ? add_class : '';
   data_type = typeof data_type !== 'undefined' ? data_type : ""';
   ...
 }