wj-elements 0.0.15 → 0.0.17

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.
@@ -1500,9 +1500,8 @@ class Routerx extends WJElement {
1500
1500
  for (let i = 0; i < attributes.length; i++) {
1501
1501
  const attributeName = attributes[i].name;
1502
1502
  const attributeValue = attributes[i].value;
1503
- console.log(attributeName, attributeValue, new URL(attributeValue, import.meta.url), import.meta.url, this.origin);
1504
1503
  if (attributeName === "component" && attributeValue.indexOf(".js") > -1) {
1505
- obj.component = () => import(new URL(attributeValue, this.origin || import.meta.url).href);
1504
+ obj.component = () => import(new URL(attributeValue, this.origin || "").href);
1506
1505
  } else {
1507
1506
  if (attributeName !== "shadow") {
1508
1507
  obj[attributeName] = attributeValue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wj-elements",
3
3
  "private": false,
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "./dist"