From 9bfafde95786f0ca0d6f661fc2a70aa0e02bf063 Mon Sep 17 00:00:00 2001 From: yanaminkova <32466553+yanaminkova@users.noreply.github.com> Date: Wed, 30 Aug 2023 11:14:32 +0300 Subject: [PATCH] fix: console error (#251) Fixes: https://github.com/SAP/ui5-inspector/issues/250 --- app/vendor/ToolsAPI.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/vendor/ToolsAPI.js b/app/vendor/ToolsAPI.js index c6f6b44..f87f5f2 100644 --- a/app/vendor/ToolsAPI.js +++ b/app/vendor/ToolsAPI.js @@ -63,6 +63,11 @@ sap.ui.define(["jquery.sap.global", "sap/ui/core/ElementMetadata"], function _getDebugModeInfo() { // check URI param + + if (!BaseConfig) { + return false; + } + var vDebugInfo = BaseConfig.get({ name: 'sapUiDebug', type: BaseConfig.Type.String,