@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
|
@@ -227,10 +227,15 @@ sap.registerComponentDependencyPaths(manifestUri)
|
|
|
227
227
|
} else {
|
|
228
228
|
sap.ui.getCore().attachInit(function () {
|
|
229
229
|
registerSAPFonts();
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
});
|