Skip to content

Commit

Permalink
fix: console error
Browse files Browse the repository at this point in the history
  • Loading branch information
yanaminkova committed Aug 25, 2023
1 parent 09ad319 commit c84261f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions app/vendor/ToolsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,19 @@ sap.ui.define(["jquery.sap.global", "sap/ui/core/ElementMetadata"],

function _getDebugModeInfo() {
// check URI param
var vDebugInfo;

if (BaseConfig) {
vDebugInfo = BaseConfig.get({
name: 'sapUiDebug',
type: BaseConfig.Type.String,
defaultValue: false,
external: true,
freeze: true
});

if (!BaseConfig) {
return false;
}

var vDebugInfo = BaseConfig.get({
name: 'sapUiDebug',
type: BaseConfig.Type.String,
defaultValue: false,
external: true,
freeze: true
});

// check local storage
try {
vDebugInfo = vDebugInfo || window.localStorage.getItem('sap-ui-debug');
Expand Down

0 comments on commit c84261f

Please sign in to comment.