Skip to content

Commit 3180322

Browse files
griffin2000mrdoob
authored andcommitted
Call onError CB if createElementNS fails (mrdoob#9799)
1 parent 99ae5a1 commit 3180322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/loaders/ImageLoader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Object.assign( ImageLoader.prototype, {
2929
scope.manager.itemEnd( url );
3030

3131
};
32+
image.onerror = onError; //Catch error in createElementNS
3233

3334
if ( url.indexOf( 'data:' ) === 0 ) {
3435

0 commit comments

Comments
 (0)