office-addin-mock
Version:
Provides mocking support for Office-js APIs
17 lines • 558 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getHostType = void 0;
const office_addin_manifest_1 = require("office-addin-manifest");
function getHostType(object) {
let validHost = undefined;
if (object && object["host"]) {
Object.values(office_addin_manifest_1.OfficeApp).forEach((host) => {
if (object["host"] === host) {
validHost = object["host"];
}
});
}
return validHost;
}
exports.getHostType = getHostType;
//# sourceMappingURL=host.js.map