From 17b3a2aa0551ae6936f43f2d53ce95ca8426d443 Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Tue, 4 May 2021 17:03:39 -0400 Subject: [PATCH] Update src/components/apphost.js Co-authored-by: Bill Thornton --- src/components/apphost.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/apphost.js b/src/components/apphost.js index 1d66f51044..2ae64f97b0 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -275,7 +275,7 @@ const supportedFeatures = function () { */ function doExit() { try { - if (window.NativeShell && window.NativeShell.AppHost.exit) { + if (window.NativeShell?.AppHost?.exit) { window.NativeShell.AppHost.exit(); } else if (browser.tizen) { tizen.application.getCurrentApplication().exit();