Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

OfficeHelpers.Utilities.host incorrectly identifies Word Office 2013 in Win 7 as "WEB" #36

Closed
LucasMoffitt opened this issue Aug 6, 2017 · 3 comments
Assignees

Comments

@LucasMoffitt
Copy link

LucasMoffitt commented Aug 6, 2017

OfficeHelpers.Utilities.host will return "WEB" while running in Office 2013 on Windows 7.

I believe (but haven't verified) that it's catching an error as below.

catch (error) {
        return { host: 'WEB', platform: null };
    }
@WrathOfZombies
Copy link
Contributor

@Zlatkovsky something that you'd be better at resolving.

My hunch is the sessionStorage object either being null due to Office.js not being available or due to it not having the right values.

@LucasMoffitt can you patch your local copy of OfficeHelpers to do a OfficeHelpers.Utilities.log(error) just before the return so that it can help us identify the issue.

@Zlatkovsky
Copy link
Member

@LucasMoffitt , where are you calling this from? The code is only guaranteed to return correct values if it's run inside of or after Office.initialized has been called.

@WrathOfZombies
Copy link
Contributor

Probably related to #38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants