Fix JS error

ECMAScript 6 isn't really supported anywhere

Closes #20681
This commit is contained in:
Steven Fackler 2015-01-06 20:48:06 -08:00
parent ea6f65c5f1
commit 47c9cc44dc

View File

@ -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);
}
});