Fix double-click cart/wishlist issue: prevent duplicate initialization
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user