Created
July 13, 2014 10:06
-
-
Save PAEz/040ef8f637bd635254a7 to your computer and use it in GitHub Desktop.
evIl
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 evIl = function(script) { | |
blob = new Blob([script], { | |
type: "application/javascript" | |
}); | |
url = window.URL.createObjectURL(blob); | |
s = document.createElement('script'); | |
s.src = url; | |
document.head.appendChild(s); | |
window.URL.revokeObjectURL(url); | |
s.parentElement.removeChild(s); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment