@wavemaker/app-ng-runtime 11.5.2-next.141032 → 11.5.2-next.141036
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.
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/runtime/base/bundles/index.umd.js +14 -1
- app-ng-runtime/runtime/base/esm2020/runtime-base.module.mjs +15 -2
- app-ng-runtime/runtime/base/fesm2015/index.mjs +14 -1
- app-ng-runtime/runtime/base/fesm2015/index.mjs.map +1 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs +14 -1
- app-ng-runtime/runtime/base/fesm2020/index.mjs.map +1 -1
|
@@ -4588,9 +4588,22 @@ class ShadowDomRenderer extends WMDefaultDomRenderer2 {
|
|
|
4588
4588
|
}
|
|
4589
4589
|
|
|
4590
4590
|
const initializeProjectDetails = () => {
|
|
4591
|
+
let cdnUrl = document.querySelector('[name="deployUrl"]') && document.querySelector('[name="deployUrl"]').getAttribute('content');
|
|
4592
|
+
//for preview
|
|
4593
|
+
if (!cdnUrl) {
|
|
4594
|
+
cdnUrl = document.querySelector('[name="cdnUrl"]') && document.querySelector('[name="cdnUrl"]').getAttribute('content');
|
|
4595
|
+
}
|
|
4591
4596
|
_WM_APP_PROJECT.id = hasCordova() ? _WM_APP_PROPERTIES.displayName : location.href.split('/')[3];
|
|
4592
|
-
|
|
4597
|
+
// Integration with third party apps like in SSPA/WebComponents, this meta tag with cdnUrl will not be there then default it to ng-bundle/
|
|
4598
|
+
_WM_APP_PROJECT.cdnUrl = cdnUrl || 'ng-bundle/';
|
|
4593
4599
|
_WM_APP_PROJECT.ngDest = 'ng-bundle/';
|
|
4600
|
+
try {
|
|
4601
|
+
//@ts-ignore
|
|
4602
|
+
__webpack_require__.p = __webpack_public_path__ = cdnUrl;
|
|
4603
|
+
}
|
|
4604
|
+
catch (e) {
|
|
4605
|
+
//for app preview there is no webpack. Don't do anything.
|
|
4606
|
+
}
|
|
4594
4607
|
};
|
|
4595
4608
|
var OS;
|
|
4596
4609
|
(function (OS) {
|