Fix JS error
ECMAScript 6 isn't really supported anywhere Closes #20681
This commit is contained in:
@@ -708,7 +708,7 @@
|
|||||||
var code = $('<code>').append(structs[j]);
|
var code = $('<code>').append(structs[j]);
|
||||||
$.each(code.find('a'), function(idx, a) {
|
$.each(code.find('a'), function(idx, a) {
|
||||||
var href = $(a).attr('href');
|
var href = $(a).attr('href');
|
||||||
if (href && !href.startsWith('http')) {
|
if (href && href.indexOf('http') !== 0) {
|
||||||
$(a).attr('href', rootPath + href);
|
$(a).attr('href', rootPath + href);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user