pinokiod 5.0.0 → 5.0.1

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.
@@ -769,7 +769,10 @@ document.addEventListener("DOMContentLoaded", () => {
769
769
  }
770
770
  options?.replace ? location.replace(url) : location.assign(url);
771
771
  } else {
772
- const callback = encodeURIComponent(window.location.pathname + window.location.search + window.location.hash);
772
+ const callbackUrl = url
773
+ ? (url.pathname + url.search + url.hash)
774
+ : (window.location.pathname + window.location.search + window.location.hash);
775
+ const callback = encodeURIComponent(callbackUrl);
773
776
  window.location.href = `/setup/dev?callback=${callback}`;
774
777
  }
775
778
  });