Fix isCanvasSupported for new window

Signed-off-by: Zhang Hao <jason.daurus@gmail.com>
This commit is contained in:
Zhang Hao 2015-02-04 09:44:22 +08:00
parent df74705601
commit 64e3c46ad1

View File

@ -4,7 +4,7 @@
*/
function isCanvasSupported() {
var el = document.getElementById("canvas");
var el = document.createElement("canvas");
return !!(el.getContext && el.getContext("2d"));
}