Open ayushsood opened 6 years ago
In the case that host is undefined it would be helpful if there was a default value here: https://github.com/lemniscate-labs/office-js-helpers/blob/master/src/helpers/utilities.ts#L102
host
undefined
Can it fallback to the following:
return officeJsToHelperEnumMapping[host] || host || HostType.WEB;
Good catch. Can you send a PR?
In the case that
host
isundefined
it would be helpful if there was a default value here: https://github.com/lemniscate-labs/office-js-helpers/blob/master/src/helpers/utilities.ts#L102Can it fallback to the following: