From 0624769d9872a8f119fa670b20342af5d167264b Mon Sep 17 00:00:00 2001 From: Yannick Reekmans Date: Mon, 6 May 2019 12:46:09 +0200 Subject: [PATCH] Better check for isAddIn, otherwise it still tries to use the Office Dialog Framework instead of browser popup --- src/helpers/utilities.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/utilities.ts b/src/helpers/utilities.ts index 69230b9..d25a790 100644 --- a/src/helpers/utilities.ts +++ b/src/helpers/utilities.ts @@ -177,7 +177,7 @@ export class Utilities { * Utility to check if the code is running inside of an add-in. */ static get isAddin() { - return Utilities.host !== HostType.WEB; + return !!Utilities.host && Utilities.host !== HostType.WEB; } /**