Skip to content

Commit 48d926f

Browse files
committed
Add debug statements
1 parent 6c3068f commit 48d926f

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
@@ -9,7 +9,7 @@
99
function href(url, path) {
1010
const defaultURL = url + "/index.html";
1111
url += "/" + path;
12-
12+
console.log(url);
1313
// If a versioned resource exists, return the resource's URL; otherwise, return a default URL:
1414
return fetch(url).then(onResponse).catch(onError);
1515

@@ -81,14 +81,12 @@ async function add_version_dropdown(json_loc, target_loc, text) {
8181
* @returns {Promise} promise which resolves upon processing version data
8282
*/
8383
async function onVersions(versions) {
84-
console.log(versions);
85-
8684
// Resolve the current browser URL:
8785
const currentURL = window.location.href;
8886

8987
// Check whether the user is currently on a resource page (e.g., is viewing the specification for a particular function):
9088
let path = currentURL.split(/_site|array\-api/)[1];
91-
89+
console.log(path);
9290
// Extract the resource subpath:
9391
if (path) {
9492
path = path.split("/");

0 commit comments

Comments
 (0)