Skip to content

Commit fa7e729

Browse files
author
Avaer Kazmer
committed
utils.js _getBaseUrl cleanup
1 parent e87c37d commit fa7e729

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import GlobalContext from './GlobalContext.js';
1010

1111
const module = {exports: {}};
1212

13-
function _getBaseUrl(u, currentBaseUrl = '') {
13+
function _getBaseUrl(u) {
1414
let result;
1515
if (/^file:\/\//.test(u)) {
1616
result = u;
1717
} else if (/^(?:data|blob):/.test(u)) {
18-
result = currentBaseUrl;
18+
result = location.origin;
1919
} else {
2020
if (!/^[a-z]+:/.test(u)) {
2121
let {href} = location;

0 commit comments

Comments
 (0)