HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: /home4/cca63905/www/nueva/modules/ps_accounts/views/js/notifications.js
document.addEventListener("DOMContentLoaded", async function() {
  function i() {
    const r = "ps_accounts/views/js/notifications.js", t = document.querySelectorAll("script");
    let n = null;
    if (t.forEach((e) => {
      e.src.includes(r) && (n = e);
    }), n) {
      const e = n.src;
      return new URL(e).searchParams;
    }
    return null;
  }
  async function s(r) {
    return await fetch(r, {
      method: "GET"
    }).then((t) => t.json()).then((t) => t).catch((t) => (console.error("Error:", t), null));
  }
  function a(r, t) {
    r.forEach((n) => {
      const e = document.createElement("div");
      e.innerHTML = n == null ? void 0 : n.html, t.prepend(e);
    });
  }
  const c = document.querySelector("#main-div .content-div, #main #content");
  if (!c) return;
  const o = i();
  o && a(await s(o.get("ctx") || ""), c);
});