Allow to load office.js in non Office environments without side effects
Hi,
when currently office-js is loaded outside a office enviornment, it reports
Warning: Office.js is loaded outside of Office client
(what is perfectly fine) but that is not all: it also does very invasive things to the browsers objects, so that some apps are not working any more like reported in issue https://github.com/OfficeDev/office-js/issues/2310.
It would be great if office-js could be loaded even if it is not a browser environment. If so, it just reports that it is not in a office env, and that's it. It should not do anything to the browser in that case but just life silently without being used.
The use case for this is, so have a webapp being usable with and without office. If the webapp is loaded within an office product, it can enhance the webapps capabilities. If the webapp is loaded just in the browser, the office integration is not available.
kind regards