UPDATE:
Please see my answer above instead ( fooobar.com/questions/994931 / ... ), since a script is now possible.
[Old answer:]
Jim, could you describe your script more? Why do you need to distinguish between Online and Desktop?
The disappearance of host_info_ : you will not find it in the documents, because host_info_ has never been in the documents. All that is not documented is the internal API, which can change as necessary in the internal work of Office.js. We take support very seriously, but only for official <documented actual APIs.
Without the API, not much can be done to talk about everything (more precisely, not to rely on other bits of internal work, which can also change over time). We discussed this earlier, but it was surprisingly difficult to point out a specific scenario when the platform information was necessary and legal ("legal" in the sense that if you use the platform information to check the availability of the API, for example, that we we want to do you, we want to use Office.context.requirements.isSetSupported ) instead.
If you can share your details about the script, I could give you an alternative way to determine what you need, or have a reliable script to return to the team.
source share