isdata-customer-sdk 0.1.52 → 0.1.54

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/dist/index.js CHANGED
@@ -30488,7 +30488,7 @@ const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
30488
30488
  let path = result.data.path;
30489
30489
  return path;
30490
30490
  };
30491
- const queryAndStoreAppVariable = async (name, appVariables) => {
30491
+ const queryAndStoreAppVariable = (name, appVariables) => {
30492
30492
  let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
30493
30493
  if (!value) {
30494
30494
  value = queryAppVariable(name, appVariables);
@@ -30727,7 +30727,8 @@ const initFrameWindowListener = () => {
30727
30727
  };
30728
30728
  const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
30729
30729
  let timestamp = new Date().getTime();
30730
- let eventOperateKey = `${originKey}_${timestamp}`;
30730
+ let randomNum = Math.floor(Math.random() * 10000) + 1;
30731
+ let eventOperateKey = `${eventKey}_${timestamp}_${randomNum}`;
30731
30732
  addEventAction(eventOperateKey, callback);
30732
30733
  let postData = {
30733
30734
  eventOperateKey: eventOperateKey,