@xwadex/fesd 0.0.31 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -865,13 +865,13 @@ function Ei(n) {
865
865
  const i = [];
866
866
  n && n.forEach((t) => {
867
867
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
868
- }), v("html").addClass("scrollLock"), vs(i);
868
+ }), v("html").addClass("scrollLock"), vs(i), document.body.style.position = "fixed";
869
869
  }
870
870
  function Ai(n) {
871
871
  const i = [];
872
872
  n && n.forEach((t) => {
873
873
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
874
- }), v("html").removeClass("scrollLock"), bs(i);
874
+ }), v("html").removeClass("scrollLock"), bs(i), document.body.style.position = "unset";
875
875
  }
876
876
  async function fn(n = 0) {
877
877
  if (v(".loading-wrapper").length)
@@ -1164,15 +1164,8 @@ V = new WeakSet(), Se = function() {
1164
1164
  route: l,
1165
1165
  on: {
1166
1166
  complete(m) {
1167
- if (c == "instagram")
1168
- if (m.setAttribute("video-typeStyle", `${c}`), window.instgrm)
1169
- window.instgrm.Embeds.process();
1170
- else {
1171
- const f = document.createElement("script");
1172
- f.src = "https://www.instagram.com/embed.js", f.async = !0, document.body.appendChild(f);
1173
- }
1174
- else
1175
- m.querySelector(".modal-content").insertAdjacentHTML("beforeend", lt(t.params)), m.setAttribute("video-typeStyle", `${c}`);
1167
+ var f;
1168
+ c == "instagram" ? (m.setAttribute("video-typeStyle", `${c}`), (f = window.instgrm) != null && f.Embeds ? window.instgrm.Embeds.process() : console.log("window.instgrm is undefined")) : (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", lt(t.params)), m.setAttribute("video-typeStyle", `${c}`));
1176
1169
  },
1177
1170
  open(m) {
1178
1171
  const f = m.querySelectorAll("[data-overlayscrollbars-viewport]");