Fail more gracefully on pre-IE9 browsers (still room for improvement though)
This commit is contained in:
parent
d8debb5e3c
commit
fcb7c32909
6 changed files with 43 additions and 9 deletions
|
|
@ -541,8 +541,8 @@ C1PVideo.init = function()
|
|||
* "autocapitalize" work here.
|
||||
*/
|
||||
var eCanvas = window.document.createElement("canvas");
|
||||
if (eCanvas === undefined) {
|
||||
eVideo.innerHTML = "<br/>Missing <canvas> support; try a new web browser.";
|
||||
if (eCanvas === undefined || !eCanvas.getContext) {
|
||||
eVideo.innerHTML = "<br/>Missing <canvas> support. Please try a newer web browser.";
|
||||
return;
|
||||
}
|
||||
eCanvas.setAttribute("class", C1PJSCLASS + "-canvas");
|
||||
|
|
|
|||
Loading…
Reference in a new issue