efront 3.20.6 → 3.20.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -353,7 +353,7 @@ function fixApi(api, href) {
353
353
  href = protocol + "//" + host + href;
354
354
  }
355
355
  else if (/^\.\//.test(href)) {
356
- var { protocol, host, pathname } = parseURL(location.href);
356
+ var { protocol, host, pathname } = parseURL(document.baseURI || location.href);
357
357
  href = href.slice(1);
358
358
  if (pathname) href = pathname.replace(/\/[^\/\\]*$/, '') + href;
359
359
  href = protocol + "//" + host + href;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.20.6",
3
+ "version": "3.20.7",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {