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.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 =
|
|
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
|
|
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,
|