i am developing an excel web app addin for office365, my excel file is placed in one drive. when i open my excel file it shows in readonly mode. is it possible using office.js or any javascript code to detect if file is in readonly.
i tried url in the browser changes if you edit the excel so that can be used to detect if file is in readonly mode or edit mode. right now you can see it as view.aspx page.
i also tried using widnows.location, but as this app stays in iframe, its difficult to get parents url location.

