File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export class AudioView extends DOMWidgetView {
62
62
// Clean up the old objectURL
63
63
const oldurl = this . el . src ;
64
64
this . el . src = url ;
65
- if ( oldurl && typeof oldurl !== 'string' ) {
65
+ if ( oldurl ) {
66
66
URL . revokeObjectURL ( oldurl ) ;
67
67
}
68
68
Original file line number Diff line number Diff line change @@ -62,9 +62,10 @@ export class ImageView extends DOMWidgetView {
62
62
// Clean up the old objectURL
63
63
const oldurl = this . el . src ;
64
64
this . el . src = url ;
65
- if ( oldurl && typeof oldurl !== 'string' ) {
65
+ if ( oldurl ) {
66
66
URL . revokeObjectURL ( oldurl ) ;
67
67
}
68
+
68
69
const width = this . model . get ( 'width' ) ;
69
70
if ( width !== undefined && width . length > 0 ) {
70
71
this . el . setAttribute ( 'width' , width ) ;
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export class VideoView extends DOMWidgetView {
65
65
// Clean up the old objectURL
66
66
const oldurl = this . el . src ;
67
67
this . el . src = url ;
68
- if ( oldurl && typeof oldurl !== 'string' ) {
68
+ if ( oldurl ) {
69
69
URL . revokeObjectURL ( oldurl ) ;
70
70
}
71
71
You can’t perform that action at this time.
0 commit comments