Fix JS error
ECMAScript 6 isn't really supported anywhere Closes #20681
This commit is contained in:
parent
ea6f65c5f1
commit
47c9cc44dc
1 changed files with 1 additions and 1 deletions
|
@ -708,7 +708,7 @@
|
|||
var code = $('<code>').append(structs[j]);
|
||||
$.each(code.find('a'), function(idx, a) {
|
||||
var href = $(a).attr('href');
|
||||
if (href && !href.startsWith('http')) {
|
||||
if (href && href.indexOf('http') !== 0) {
|
||||
$(a).attr('href', rootPath + href);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue