We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6823f15 commit 6ab0f0fCopy full SHA for 6ab0f0f
assets/client.js
@@ -272,10 +272,14 @@ function showSpinner(msg) {
272
div.appendChild(msgDiv);
273
}
274
275
+let lastQueriedURL = null;
276
+
277
// disable the user interface, initiate an XHR
278
function sendQuery(url, followReferral=false, followingReferral=true) {
279
freezeUI();
280
281
+ lastQueriedURL = null;
282
283
if (0 == url.indexOf('json://')) {
284
// run the callback with a mock XHR
285
handleResponse({
@@ -342,6 +346,8 @@ function createErrorNode(error) {
342
346
function handleResponse(xhr, followReferral=false) {
343
347
thawUI();
344
348
349
+ lastQueriedURL = xhr.responseURL;
350
345
351
if (404 == xhr.status) {
352
handleError('This object does not exist.');
353
0 commit comments