summaryrefslogtreecommitdiffstats
path: root/browser/components/pocket/content/panels/js/saved/entry.js
blob: b022c7a5e965df50b02357410abb56633be1ecc6 (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.initSaved();
  }
  window.thePKT_PANEL.create();
}

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