Skip to content

Commit bac4929

Browse files
committed
remove prints and point to the index file
1 parent 5c73a1a commit bac4929

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
function assign_href( a, url, path ) {
22
const r = fetch( url + "/" + path );
33
r.then( response => {
4-
console.log('...', response);
54
if( response.ok ){
65
a.href = url + "/" + path;
76
}
87
else {
9-
a.href = url;
8+
a.href = url + "/index.html";
109
}
1110
}).catch( error => {
12-
a.href = url;
11+
a.href = url + "/index.html";
1312
});
1413
}
1514

@@ -22,7 +21,6 @@ function add_version_dropdown(json_loc, target_loc, text) {
2221
content.className = "dropdown-content md-hero";
2322
dropdown.appendChild(button);
2423
dropdown.appendChild(content);
25-
console.log('*********');
2624
$.getJSON(json_loc, function(versions) {
2725
var currentURL = window.location.href;
2826
var path = currentURL.split( "_site" )[ 1 ];

0 commit comments

Comments
 (0)