Skip to content

Commit 10eaa46

Browse files
using new static methods for generating object url when loading html files as well
1 parent a0c1d12 commit 10eaa46

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/loader/filetypes/HTMLFile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var HTMLFile = new Class({
7474

7575
this.data.onload = function ()
7676
{
77-
URL.revokeObjectURL(_this.data.src);
77+
File.revokeObjectURL(_this.data);
7878

7979
_this.onComplete();
8080

@@ -83,14 +83,14 @@ var HTMLFile = new Class({
8383

8484
this.data.onerror = function ()
8585
{
86-
URL.revokeObjectURL(_this.data.src);
86+
File.revokeObjectURL(_this.data);
8787

8888
_this.state = CONST.FILE_ERRORED;
8989

9090
callback(_this);
9191
};
9292

93-
this.data.src = URL.createObjectURL(blob);
93+
File.createObjectURL(this.data, blob, 'image/svg+xml');
9494
}
9595

9696
});

0 commit comments

Comments
 (0)