Update src/components/apphost.js
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
123ff9f834
commit
17b3a2aa05
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ const supportedFeatures = function () {
|
||||||
*/
|
*/
|
||||||
function doExit() {
|
function doExit() {
|
||||||
try {
|
try {
|
||||||
if (window.NativeShell && window.NativeShell.AppHost.exit) {
|
if (window.NativeShell?.AppHost?.exit) {
|
||||||
window.NativeShell.AppHost.exit();
|
window.NativeShell.AppHost.exit();
|
||||||
} else if (browser.tizen) {
|
} else if (browser.tizen) {
|
||||||
tizen.application.getCurrentApplication().exit();
|
tizen.application.getCurrentApplication().exit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue