Skip to content
Snippets Groups Projects
Unverified Commit 33de60d3 authored by Alexander Rose's avatar Alexander Rose Committed by GitHub
Browse files

fix typeof check

parent ffdcf798
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ export function getAttachment(gl: GLRenderingContext, extensions: WebGLExtension
}
function isImage(x: TextureImage<any> | TextureVolume<any> | HTMLImageElement): x is HTMLImageElement {
return typeof HTMLImageElement !== undefined && (x instanceof HTMLImageElement);
return typeof HTMLImageElement !== 'undefined' && (x instanceof HTMLImageElement);
}
function isTexture2d(x: TextureImage<any> | TextureVolume<any>, target: number, gl: GLRenderingContext): x is TextureImage<any> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment