@pitcher/js-api 1.25.0-beta.0 → 1.25.0-beta.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.
package/js-api.esm.js CHANGED
@@ -3131,7 +3131,6 @@ const onlineRestApiHandlers = {
3131
3131
  }
3132
3132
  };
3133
3133
 
3134
- const TRUNCATE_LENGTH_TRIGGER = 10;
3135
3134
  function getTopPitcherWindow(current = window) {
3136
3135
  try {
3137
3136
  if (current.location.protocol === "file:") {
@@ -3144,6 +3143,8 @@ function getTopPitcherWindow(current = window) {
3144
3143
  }
3145
3144
  return current;
3146
3145
  }
3146
+
3147
+ const TRUNCATE_LENGTH_TRIGGER = 10;
3147
3148
  function updateOnlineHandlersEnv(env) {
3148
3149
  env && setEnv(env);
3149
3150
  }
@@ -3477,7 +3478,7 @@ const loadingUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
3477
3478
 
3478
3479
  async function updateLocation(payload) {
3479
3480
  const pr = await usePostRobot();
3480
- return pr.send(window.top, UI_API_METHOD_TYPES.UI_UPDATE_LOCATION, payload);
3481
+ return pr.send(getTopPitcherWindow(), UI_API_METHOD_TYPES.UI_UPDATE_LOCATION, payload);
3481
3482
  }
3482
3483
 
3483
3484
  const locationUi = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({