Fix double-click cart/wishlist issue: prevent duplicate initialization

This commit is contained in:
Local Server
2026-01-14 21:10:06 -06:00
parent 5cb5b1208f
commit 7200bd7012
2 changed files with 8 additions and 0 deletions

View File

@@ -700,6 +700,9 @@
console.log("[ShopSystem] AppState compatibility layer installed");
// Mark as initialized to prevent cart.js duplicate initialization
window.ShopSystem.isInitialized = true;
// Setup dropdowns when DOM is ready
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", () => {