Open yinhx3 opened 4 days ago
https://learn.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-in-office-add-ins#cross-domain-messaging-to-the-dialog-runtime
function onMessageFromParent(arg) { if (arg.origin === "https://addin.fabrikam.com") { // process message } else { dialog.close(); showNotification("Messages from " + arg.origin + " aren't accepted."); } }
dialog.close(); can't run in a dialog. Should post message to the host to close a dialog corroding to the section below
dialog.close();
Thanks for reporting this @yinhx3.
@samantharamon, could you please investigate?
https://learn.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-in-office-add-ins#cross-domain-messaging-to-the-dialog-runtime
dialog.close();
can't run in a dialog. Should post message to the host to close a dialog corroding to the section below