Skip to content

Commit 8ca2b0f

Browse files
committed
add catch block
1 parent 1312193 commit 8ca2b0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ function assign_href( a, url, path ) {
55
if( response.ok ){
66
a.href = url + "/" + path;
77
}
8-
else {
9-
a.href = url;
10-
}
8+
}).catch( error => {
9+
a.href = url;
1110
});
1211
}
1312

0 commit comments

Comments
 (0)