@sap-ux/ui5-application-writer 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
11
11
  },
12
- "version": "1.1.5",
12
+ "version": "1.1.6",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -227,10 +227,15 @@ sap.registerComponentDependencyPaths(manifestUri)
227
227
  } else {
228
228
  sap.ui.getCore().attachInit(function () {
229
229
  registerSAPFonts();
230
- // initialize the ushell sandbox component
231
- sap.ushell.Container.createRenderer(true).then(function (component) {
232
- component.placeAt("content");
233
- });
230
+ try {
231
+ // initialize the ushell sandbox component in ui5 v2
232
+ sap.ushell.Container.createRenderer(true).then(function (component) {
233
+ component.placeAt("content");
234
+ });
235
+ } catch {
236
+ // support older versions of ui5
237
+ sap.ushell.Container.createRenderer().placeAt("content");
238
+ }
234
239
  });
235
240
  }
236
241
  });