Fix isCanvasSupported for new window
Signed-off-by: Zhang Hao <jason.daurus@gmail.com>
This commit is contained in:
parent
df74705601
commit
64e3c46ad1
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
function isCanvasSupported() {
|
||||
var el = document.getElementById("canvas");
|
||||
var el = document.createElement("canvas");
|
||||
return !!(el.getContext && el.getContext("2d"));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user