Last active
October 21, 2016 05:52
-
-
Save xmeta/5c0f3e2aa7f84eecfbcf449ed17440b2 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html><html class=''> | |
<head> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.22/webcomponents-lite.min.js'></script> | |
<meta charset='UTF-8'> | |
<meta name="robots" content="noindex"> | |
</head><body> | |
<script> | |
'use strict'; | |
function supportsPolymer() { | |
return 'content' in document.createElement('template') && 'import' in document.createElement('link') && 'registerElement' in document && document.head.createShadowRoot; | |
} | |
if (supportsPolymer()) { | |
alert('Yes'); | |
} else { | |
alert('No'); | |
} | |
//# sourceURL=pen.js | |
</script> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment