Reputation: 190986
I'm using Office.context.ui.displayDialogAsync
. When I click a button in the ribbon from Office Online, I get a modal from Office Online titled "Notification" asking for permission with the text "{addin} wants to display a new window".
How can I make this stop?
Upvotes: 5
Views: 1343
Reputation: 11
If you want to open a new window from the ribbon button, then this notification dialog is needed. Otherwise, your new window will be clocked by the browser popup blocker. This is a design for displayDialogAsync api. But also as Daniel said, you can just pass the displayInIframe:true to open a inline iframe dialog from the ribbon button, in this case, there is no notification for it.
Upvotes: 1
Reputation: 190986
Passing displayInIframe: true
to the dialog options will suppress the message.
Upvotes: 3