Last active
October 8, 2018 18:15
-
-
Save ivarconr/984b18ef4964dd42e54e9b527f571414 to your computer and use it in GitHub Desktop.
show-interest
This file contains hidden or 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
const xhrBase = document.getElementById("showInterest").getAttribute('data-xhr-path'); | |
const adId = document.getElementById("showInterest").getAttribute('data-ad-id'); | |
fetch(`${xhrBase}save?adId=${adId}`).then(() => console.log('fetch')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment