Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ function uploadImage(image, event, source, value) {
|
|
181 |
source: source,
|
182 |
value:image: imageUrl
|
183 |
};
|
184 |
-
window.parent.postMessage(
|
185 |
} else if (isValidEnv()){
|
186 |
try{
|
187 |
sendCustomEventToDataLayer({},event,source,{"image":imageUrl})
|
|
|
181 |
source: source,
|
182 |
value:image: imageUrl
|
183 |
};
|
184 |
+
window.parent.postMessage(data, '*');
|
185 |
} else if (isValidEnv()){
|
186 |
try{
|
187 |
sendCustomEventToDataLayer({},event,source,{"image":imageUrl})
|