diff --git a/src/zabap2ui5.wapa.controller_-view1.controller.js b/src/zabap2ui5.wapa.controller_-view1.controller.js index fad8485..baaba25 100644 --- a/src/zabap2ui5.wapa.controller_-view1.controller.js +++ b/src/zabap2ui5.wapa.controller_-view1.controller.js @@ -13,12 +13,12 @@ sap.ui.define([ //Set app title dynamically try{ - if ( sap.ushell.ui5service !== undefinded ){ + if ( sap.ushell.ui5service){ this.getOwnerComponent().getService("ShellUIService").then( // promise is returned function (oService) { try { var sTitle = that.getOwnerComponent().getComponentData().startupParameters.app_title[0]; - sap.z2ui5.startupParameters = this.getOwnerComponent().getComponentData().startupParameters; + sap.z2ui5.startupParameters = that.getOwnerComponent().getComponentData().startupParameters; oService.setTitle(sTitle); } catch (e) {} } @@ -84,4 +84,4 @@ sap.ui.define([ } }, }); - }); \ No newline at end of file + });