Created
March 1, 2013 04:23
-
-
Save esmevane/5062468 to your computer and use it in GitHub Desktop.
[ CoffeeScript ] iframe downloader hack
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
class Download | |
constructor: (@source) -> | |
@iframe = document.createElement 'iframe' | |
@iframe.style.display = 'none' | |
@iframe.src = @source | |
perform: -> document.body.appendChild @iframe | |
Download.Perform = (src) -> (new Download(src)).perform() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment