Browse Source

Add window.$ and window.select to simplify debugging (#536)

master
Federico Brigante 7 years ago
committed by Sindre Sorhus
parent
commit
2051dc6810
  1. 4
      src/content.js

4
src/content.js

@ -25,6 +25,10 @@ import autoLoadMoreNews from './libs/auto-load-more-news';
import * as icons from './libs/icons';
import * as pageDetect from './libs/page-detect';
// Add globals for easier debugging
window.$ = $;
window.select = select;
const repoUrl = pageDetect.getRepoURL();
const getUsername = () => select('meta[name="user-login"]').getAttribute('content');

Loading…
Cancel
Save