mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 15:33:53 +00:00
Fix JS error
ECMAScript 6 isn't really supported anywhere Closes #20681
This commit is contained in:
parent
ea6f65c5f1
commit
47c9cc44dc
@ -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…
Reference in New Issue
Block a user