|
@@ -71,7 +71,16 @@ ImageBitmapLoader.prototype = {
|
|
|
|
|
|
} ).then( function ( blob ) {
|
|
} ).then( function ( blob ) {
|
|
|
|
|
|
- return createImageBitmap( blob, scope.options );
|
|
|
|
|
|
+ if ( scope.options === undefined ) {
|
|
|
|
+
|
|
|
|
+ // Workaround for FireFox. It causes an error if you pass options.
|
|
|
|
+ return createImageBitmap( blob );
|
|
|
|
+
|
|
|
|
+ } else {
|
|
|
|
+
|
|
|
|
+ return createImageBitmap( blob, scope.options );
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
} ).then( function ( imageBitmap ) {
|
|
} ).then( function ( imageBitmap ) {
|
|
|
|
|