Last active
November 22, 2017 19:52
-
-
Save ecrider/1894fc0a407925f2b775ee1e425fa15b to your computer and use it in GitHub Desktop.
Automatic polyfill
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
<!--source--> | |
<script type="text/javascript"> | |
(function(){ | |
if (!( | |
"Promise" in window && | |
"fetch" in window && | |
"assign" in Object && | |
"keys" in Object | |
)) { | |
var polyfill = document.createElement("script"); | |
polyfill.src = "https://cdn.polyfill.io/v2/polyfill.min.js"; | |
polyfill.async = false; | |
document.head.appendChild(polyfill); | |
} | |
})(); | |
</script> | |
<!--minified--> | |
<script type="text/javascript">(function(){if(!("fetch"in window&&"Promise"in window&&"assign"in Object&&"keys"in Object)){var a=document.createElement("script");a.src="https://cdn.polyfill.io/v2/polyfill.min.js";a.async=!1;document.head.appendChild(a)}})();</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment