@plurid/plurid-engine 0.0.0-14 → 0.0.0-15

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.
@@ -1003,7 +1003,7 @@ const cleanupPath = value => {
1003
1003
  };
1004
1004
 
1005
1005
  const computePlaneAddress = (plane, route, origin = "origin") => {
1006
- if (origin === "origin" && typeof location !== "undefined") {
1006
+ if (origin === "origin" && typeof location !== "undefined" && location.host) {
1007
1007
  origin = location.host;
1008
1008
  }
1009
1009
  const cleanPlane = extractPathname(plane);
@@ -1385,7 +1385,7 @@ class IsoMatcher {
1385
1385
  this.planesIndex = new Map;
1386
1386
  this.routesKeys = [];
1387
1387
  this.planesKeys = [];
1388
- if (origin === "origin" && typeof location !== "undefined") {
1388
+ if (origin === "origin" && typeof location !== "undefined" && location.host) {
1389
1389
  this.origin = location.host;
1390
1390
  } else {
1391
1391
  this.origin = origin;