File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ export default class ResourceLoader {
33
33
if ( this . hasResourceInCache ( src ) ) {
34
34
return src ;
35
35
}
36
+ if ( isBlobImage ( src ) ) {
37
+ this . cache [ src ] = loadImage ( src , this . options . imageTimeout || 0 ) ;
38
+ return src ;
39
+ }
36
40
37
41
if ( ! isSVG ( src ) || FEATURES . SUPPORT_SVG_DRAWING ) {
38
42
if ( this . options . allowTaint === true || isInlineImage ( src ) || this . isSameOrigin ( src ) ) {
@@ -215,6 +219,7 @@ const INLINE_IMG = /^data:image\/.*/i;
215
219
216
220
const isInlineImage = ( src : string ) : boolean => INLINE_IMG . test ( src ) ;
217
221
const isInlineBase64Image = ( src : string ) : boolean => INLINE_BASE64 . test ( src ) ;
222
+ const isBlobImage = ( src : string ) : boolean => src . substr ( 0 , 4 ) === 'blob' ;
218
223
219
224
const isSVG = ( src : string ) : boolean =>
220
225
src . substr ( - 3 ) . toLowerCase ( ) === 'svg' || INLINE_SVG . test ( src ) ;
You can’t perform that action at this time.
0 commit comments