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

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