wj-elements 0.0.15 → 0.0.16
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.
- package/dist/wj-routerx.js +2 -2
- package/package.json +1 -1
package/dist/wj-routerx.js
CHANGED
|
@@ -1500,9 +1500,9 @@ 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,
|
|
1503
|
+
console.log(attributeName, attributeValue, new URL(attributeValue, this.origin || ""), import.meta.url, this.origin);
|
|
1504
1504
|
if (attributeName === "component" && attributeValue.indexOf(".js") > -1) {
|
|
1505
|
-
obj.component = () => import(new URL(attributeValue, this.origin ||
|
|
1505
|
+
obj.component = () => import(new URL(attributeValue, this.origin || "").href);
|
|
1506
1506
|
} else {
|
|
1507
1507
|
if (attributeName !== "shadow") {
|
|
1508
1508
|
obj[attributeName] = attributeValue;
|