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.umd.js CHANGED
@@ -30498,7 +30498,7 @@ const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
30498
30498
  let path = result.data.path;
30499
30499
  return path;
30500
30500
  };
30501
- const queryAndStoreAppVariable = async (name, appVariables) => {
30501
+ const queryAndStoreAppVariable = (name, appVariables) => {
30502
30502
  let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
30503
30503
  if (!value) {
30504
30504
  value = queryAppVariable(name, appVariables);
@@ -30737,7 +30737,8 @@ const initFrameWindowListener = () => {
30737
30737
  };
30738
30738
  const sendWindowMessage = async (targetWindow, originKey, eventKey, data, callback) => {
30739
30739
  let timestamp = new Date().getTime();
30740
- let eventOperateKey = `${originKey}_${timestamp}`;
30740
+ let randomNum = Math.floor(Math.random() * 10000) + 1;
30741
+ let eventOperateKey = `${eventKey}_${timestamp}_${randomNum}`;
30741
30742
  addEventAction(eventOperateKey, callback);
30742
30743
  let postData = {
30743
30744
  eventOperateKey: eventOperateKey,