From 8a6715f03bf3cad0723f318dcf3c93098f1d94d5 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 3 Apr 2019 16:49:29 +0300 Subject: [PATCH] [all] refactoring --- apps/common/main/lib/controller/Desktop.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index f4bc0c137..ab783a36b 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -59,7 +59,9 @@ define([ if ( !!app ) { if ( !config.isOffline ) { - app.execCommand('webapps:config', 'goback:' + config.customization.goback.url); + if ( config.customization.goback && config.customization.goback.url ) { + app.execCommand('webapps:config', JSON.stringify({'goback': config.customization.goback.url})); + } } app.on_native_message = function (cmd, param) {