Created
June 11, 2014 13:34
-
-
Save LiamChapman/8a123adc4e83d0a7d4d2 to your computer and use it in GitHub Desktop.
canvas support
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
| function isCanvasSupported (){ | |
| var elem = document.createElement('canvas'); | |
| return !!(elem.getContext && elem.getContext('2d')); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment