Remove unnecessary type cast

This commit is contained in:
Frederic Junod
2019-02-13 11:35:46 +01:00
parent b71d7773d3
commit c0a860a31f
5 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ let HAS = false;
//TODO Remove side effects
if (typeof window !== 'undefined' && 'WebGLRenderingContext' in window) {
try {
const canvas = /** @type {HTMLCanvasElement} */ (document.createElement('canvas'));
const canvas = document.createElement('canvas');
const gl = getContext(canvas);
if (gl) {
HAS = true;