Skip to content

Commit

Permalink
fix incorrect blob urls origin
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 13, 2021
1 parent 3922729 commit 381a25c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/web.url.js
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ var getOrigin = function () {
var scheme = url.scheme;
var port = url.port;
if (scheme == 'blob') try {
return new URL(scheme.path[0]).origin;
return new URLConstructor(scheme.path[0]).origin;
} catch (error) {
return 'null';
}
Expand Down

0 comments on commit 381a25c

Please sign in to comment.