Skip to content

Commit 9ea6a22

Browse files
committed
Editor: Revoke old video ObjectURLs
1 parent 1d31c72 commit 9ea6a22

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

editor/js/Sidebar.Project.Video.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,16 @@ function SidebarProjectVideo( editor ) {
124124

125125
function save( blob, filename ) {
126126

127+
if ( link.href ) {
128+
129+
URL.revokeObjectURL( link.href );
130+
131+
}
132+
127133
link.href = URL.createObjectURL( blob );
128134
link.download = filename;
129135
link.dispatchEvent( new MouseEvent( 'click' ) );
130136

131-
// URL.revokeObjectURL( url ); breaks Firefox...
132-
133137
}
134138

135139
//

0 commit comments

Comments
 (0)