We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e87c37d commit fa7e729Copy full SHA for fa7e729
src/utils.js
@@ -10,12 +10,12 @@ import GlobalContext from './GlobalContext.js';
10
11
const module = {exports: {}};
12
13
-function _getBaseUrl(u, currentBaseUrl = '') {
+function _getBaseUrl(u) {
14
let result;
15
if (/^file:\/\//.test(u)) {
16
result = u;
17
} else if (/^(?:data|blob):/.test(u)) {
18
- result = currentBaseUrl;
+ result = location.origin;
19
} else {
20
if (!/^[a-z]+:/.test(u)) {
21
let {href} = location;
0 commit comments