Skip to content
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.

Better error message if javascript is unable to fetch results #82

Open
bwitt opened this issue Jan 12, 2016 · 1 comment
Open

Better error message if javascript is unable to fetch results #82

bwitt opened this issue Jan 12, 2016 · 1 comment

Comments

@bwitt
Copy link
Contributor

bwitt commented Jan 12, 2016

If the javascript on the web status page cannot fetch the status of the queue, all that is shown to the user is "..." under each of prep, que, run, etc.

rq no results

Suggest adding some text to make clear what is happening or supposed to be happening.

@sodabrew
Copy link
Collaborator

This little JS snippet looks useful:
https://www.christianheilmann.com/2015/12/25/detecting-adblock-without-an-extra-http-overhead/

var test = document.createElement('div');
test.innerHTML = ' ';
test.className = 'adsbox';
document.body.appendChild(test);
window.setTimeout(function() {
  if (test.offsetHeight === 0) {
    document.body.classList.add('adblock');
  }
  test.remove();
}, 100);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants