I have been wondering, is there a way to detect whether the addin is running in the deeplink version of the message compose or in the normal owa message compose via the "usual route" ?
Deeplink(https://outlook.office365.com/mail/deeplink/compose)
Usual route (https://outlook.office.com/mail/inbox ---> New Message)
What I tried:
1) window.location.href gives me the location of the js page in my webserver.
2) parent.document.location gives me "Uncaught DOMException: Blocked a frame with origin "https://localhost:3000" from accessing a cross-origin frame.".
I read that (for security reasons) an IFRAME can only read the origin of the pages in the IFRAME itself.
Can the office-js library natively detect which message compose link is being used?