@riboseinc/anafero-cli 0.0.16 → 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/bootstrap.js CHANGED
@@ -132621,10 +132621,14 @@ var VersionWorkspace = function({
132621
132621
  const handlePopState = function() {
132622
132622
  const uri = typeof history.state?.res === "string" ? history.state.res : void 0;
132623
132623
  let path = null;
132624
- try {
132625
- path = locateResource(uri);
132626
- } catch (e2) {
132627
- console.error("Error locating resource while popping state", e2);
132624
+ if (uri) {
132625
+ try {
132626
+ path = locateResource(uri);
132627
+ } catch (e2) {
132628
+ console.error("Error locating resource while popping state", e2);
132629
+ path = null;
132630
+ }
132631
+ } else {
132628
132632
  path = null;
132629
132633
  }
132630
132634
  if (uri && path) {
@@ -132635,7 +132639,6 @@ var VersionWorkspace = function({
132635
132639
  }
132636
132640
  } else {
132637
132641
  console.warn("When popping state, could not resolve resource URI or locate resource path");
132638
- window.location.reload();
132639
132642
  return;
132640
132643
  }
132641
132644
  };