Created
September 7, 2019 17:14
-
-
Save kaikiat/0e2b50148e36acde35128009cc808eb7 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
function download_img(){ | |
var URLinput = document.querySelector('.searchInput'); | |
console.log(URLinput.value); | |
sendURL(URLinput.value); | |
} | |
function sendURL(URL) { | |
window.location.href = `http://localhost:3000/download?URL=${URL}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment