@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.
@@ -1017,7 +1017,7 @@ const cleanupPath = value => {
1017
1017
  };
1018
1018
 
1019
1019
  const computePlaneAddress = (plane, route, origin = "origin") => {
1020
- if (origin === "origin" && typeof location !== "undefined") {
1020
+ if (origin === "origin" && typeof location !== "undefined" && location.host) {
1021
1021
  origin = location.host;
1022
1022
  }
1023
1023
  const cleanPlane = extractPathname(plane);
@@ -1399,7 +1399,7 @@ class IsoMatcher {
1399
1399
  this.planesIndex = new Map;
1400
1400
  this.routesKeys = [];
1401
1401
  this.planesKeys = [];
1402
- if (origin === "origin" && typeof location !== "undefined") {
1402
+ if (origin === "origin" && typeof location !== "undefined" && location.host) {
1403
1403
  this.origin = location.host;
1404
1404
  } else {
1405
1405
  this.origin = origin;