diff --git a/[esx]/esx_context/index.html b/[esx]/esx_context/index.html
index fa50034e..5d15770d 100644
--- a/[esx]/esx_context/index.html
+++ b/[esx]/esx_context/index.html
@@ -352,8 +352,11 @@
}
function Close() {
- $.post(`https://${GetParentResourceName()}/closed`)
- Closed()
+ $.post(`https://${GetParentResourceName()}/closed`,(retVal)=>{
+ if(retVal){
+ Closed()
+ }
+ })
}
window.addEventListener("message", (e) => {
@@ -437,4 +440,4 @@