devtools.js 261 B

12345678910
  1. var xhr = new XMLHttpRequest(),
  2. stylesheet = 'stable.css';
  3. if (/Chrome\/(\d\d)/.exec(navigator.userAgent)[1] > 39) {
  4. stylesheet = 'canary.css'
  5. }
  6. xhr.open("GET", "/" + stylesheet, false);
  7. xhr.send();
  8. chrome.devtools.panels.applyStyleSheet(xhr.responseText);