Created
March 31, 2017 22:57
-
-
Save rogeriochaves/6b7986f190ab2b2c9ed57ee0f74284f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = Elm.Cart.embed(document.getElementById('cart-main')); | |
window.addEventListener('addToCart', (event) => { | |
app.ports.addToCartEvents.send(event.detail); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment