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.
- package/dist/wj-routerx.js +1 -2
- package/package.json +1 -1
package/dist/wj-routerx.js
CHANGED
|
@@ -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 ||
|
|
1504
|
+
obj.component = () => import(new URL(attributeValue, this.origin || "").href);
|
|
1506
1505
|
} else {
|
|
1507
1506
|
if (attributeName !== "shadow") {
|
|
1508
1507
|
obj[attributeName] = attributeValue;
|