From 02c756ba2f598efcbc8803b8f6304484689662db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Tue, 19 Nov 2024 11:30:46 +0100 Subject: [PATCH] Allow the wishlist-action-handler to be deferred --- src/Resources/public/js/wishlist-action-handler.js | 2 ++ src/Resources/views/shop/_javascripts.html.twig | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Resources/public/js/wishlist-action-handler.js b/src/Resources/public/js/wishlist-action-handler.js index df16815..4974a3e 100644 --- a/src/Resources/public/js/wishlist-action-handler.js +++ b/src/Resources/public/js/wishlist-action-handler.js @@ -64,3 +64,5 @@ class WishlistActionHandler { }); } } + +new WishlistActionHandler(window.ssWishlist || {}); diff --git a/src/Resources/views/shop/_javascripts.html.twig b/src/Resources/views/shop/_javascripts.html.twig index 6ff7b03..172a947 100644 --- a/src/Resources/views/shop/_javascripts.html.twig +++ b/src/Resources/views/shop/_javascripts.html.twig @@ -1,4 +1 @@ - - +