Skip to content

Commit a8a3e51

Browse files
committed
Add debug statements
1 parent 74a2b1a commit a8a3e51

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ async function add_version_dropdown(json_loc, target_loc, text) {
5858
dropdown.appendChild(button);
5959
dropdown.appendChild(content);
6060

61-
await $.getJSON(json_loc).done(onDone).fail(onFail).always(onAlways);
61+
const p = $.getJSON(json_loc);
62+
console.log(p);
63+
64+
p.done(onDone).fail(onFail).always(onAlways);
65+
await p;
6266

6367
/**
6468
* Callback invoked upon resolving a JSON resource.
@@ -115,6 +119,7 @@ async function add_version_dropdown(json_loc, target_loc, text) {
115119
* @private
116120
*/
117121
function onFail() {
122+
console.log("Failure");
118123
button.innerHTML = "Other Versions Not Found";
119124
}
120125

@@ -124,6 +129,7 @@ async function add_version_dropdown(json_loc, target_loc, text) {
124129
* @private
125130
*/
126131
function onAlways() {
132+
console.log("Always");
127133
$(".navheader").append(dropdown);
128134
}
129135
};

0 commit comments

Comments
 (0)