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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
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 =
|
|
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
|
|
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,
|