Skip to content

Commit

Permalink
Allow global use (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Sep 1, 2022
1 parent 1ffffb9 commit e1347d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/wishlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ document.addEventListener('turbolinks:load', () => {
}, { headers: { Authorization: `Bearer ${localStorage.token}` }})

localStorage.wishlist = JSON.stringify(response.data.data.customer.wishlists[0])
this.$root.$emit('wishlist-changed')
window.app.$emit('wishlist-changed')
});

window.app.$on('logout', () => {
Expand Down

0 comments on commit e1347d5

Please sign in to comment.