@kupola/kupola 1.4.4 → 1.4.6

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.
@@ -1935,11 +1935,14 @@ function Qn() {
1935
1935
  const t = U();
1936
1936
  it(t);
1937
1937
  const e = document.querySelector("[data-theme-toggle]");
1938
- e && (e.onclick = function(o) {
1939
- o.preventDefault();
1940
- const c = Y() === "dark" ? "light" : "dark";
1941
- st(c);
1942
- });
1938
+ if (e) {
1939
+ const o = e.onclick;
1940
+ e.onclick = function(l) {
1941
+ l.preventDefault();
1942
+ const h = Y() === "dark" ? "light" : "dark";
1943
+ st(h), typeof o == "function" && o.call(this, l);
1944
+ };
1945
+ }
1943
1946
  let s = document.getElementById("brand-picker");
1944
1947
  s || (s = document.createElement("div"), s.id = "brand-picker", s.style.position = "fixed", s.style.top = "64px", s.style.right = "16px", s.style.zIndex = "9998", s.style.display = "none", s.style.padding = "12px", s.style.width = "200px", s.style.gridTemplateColumns = "repeat(3, 1fr)", s.style.gap = "6px", s.style.backgroundColor = "var(--bg-base-secondary)", s.style.border = "1px solid var(--border-neutral-l1)", s.style.borderRadius = "8px", s.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", s.style.overflow = "hidden", W.forEach((o) => {
1945
1948
  const l = document.createElement("button");