elegance-js 2.1.28 → 2.1.29

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.
@@ -4,8 +4,7 @@ function Link(options, ...children) {
4
4
  const handler = eventListener((event) => {
5
5
  const targetUrl = new URL(event.currentTarget.href, window.location.href);
6
6
  const currentUrl = new URL(window.location.href);
7
- const isSameHost = targetUrl.hostname === currentUrl.hostname &&
8
- targetUrl.port === currentUrl.port;
7
+ const isSameHost = targetUrl.host === currentUrl.host;
9
8
  if (!isSameHost) {
10
9
  return;
11
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "2.1.28",
3
+ "version": "2.1.29",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",