summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/content/panels/js/home/entry.js
blob: 56d81345775ee8ff5a6248a0a8adc56eb16c245e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* global PKT_PANEL:false */

function onDOMLoaded() {
  if (!window.thePKT_PANEL) {
    var thePKT_PANEL = new PKT_PANEL();
    /* global thePKT_PANEL */
    window.thePKT_PANEL = thePKT_PANEL;
    thePKT_PANEL.initHome();
  }
  window.thePKT_PANEL.create();
}

if (document.readyState != `loading`) {
  onDOMLoaded();
} else {
  document.addEventListener(`DOMContentLoaded`, onDOMLoaded);
}