Not working in MS Edge
-
Hello again and thank you for the help.
We just noticed that the Wishlist, while it works great in both Firefox (129.0) and Google Chrome (120.0.6099.130), but does not work in Edge. Tested on a latest Windows 10 OS and Edge (120.0.2210.91).
Here is the console error being logged each time the “Wishlist” button is clicked:Uncaught TypeError: Cannot set properties of undefined (setting ‘product_ids’)
at Object.addToWishlist (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:3183)
at L (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:4144)
at HTMLButtonElement. (addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1:6909)
at HTMLBodyElement.dispatch (jquery.min.js?ver=826eb77e86b0:2:40035)
at v.handle (jquery.min.js?ver=826eb77e86b0:2:38006)
addToWishlist @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
L @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
(anonymous) @ addonify-wishlist-public-guest.min.js?ver=88fdffc45cb4:1
dispatch @ jquery.min.js?ver=826eb77e86b0:2
v.handle @ jquery.min.js?ver=826eb77e86b0:2Testing things, when we add a break-point to
addonify-wishlist-public-guest.min.js
before theaddToWishlist: function(t) { }
function, we see thati
is undefined andt
is the correct Product ID for which the Wishlist button was clicked for. Moving the breakpoint aftervar i = this.getProducts();
and we see thati
is still undefined which throws the error. Trying to narrow down the functiongetProducts()
and holy cow the amount of minification here is crazy with the function minified asf
which is also done for 12 other functions using the samef
name ?? So I decided to create this support thread since we don’t have the non minified/original JS file.So for now when using Edge we get the full-page element blocking “Invalid security token” popup which for the time being are surpassing using a custom Javascript DOM event listener and restoring the overflow to <body>, so at least for now visitors using Edge can use our site, just the Wishlist buttons don’t function for them. We’ve provided a catalog link to our site for testing, but it occurs on all catalog and product pages where we have the Wishlist button present. Again works get with Firefox & Chrome, just not with Edge.
Thank you for the help! Appreciate it very much
HuusokuThe page I need help with: [log in to see the link]
- The topic ‘Not working in MS Edge’ is closed to new replies.