@nuskin/ns-util 4.2.4 → 4.2.5
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 +1 -1
- package/src/init.js +4 -0
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import nuskin from './namespace.js'; // import global namespace we can attach to
|
|
2
2
|
import RunConfigService from './runConfigService';
|
|
3
3
|
import UrlService from './urlService';
|
|
4
|
+
import ConfigService from './configurationService';
|
|
4
5
|
import _ from 'lodash';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -88,6 +89,9 @@ function setConfigBaseUrl(config) {
|
|
|
88
89
|
* @param config
|
|
89
90
|
*/
|
|
90
91
|
nuskin.init = (config = {}) => {
|
|
92
|
+
// this is to make sure aem config is loaded for jsp's that still refer to aem.configuration.
|
|
93
|
+
ConfigService.getMarketConfig();
|
|
94
|
+
|
|
91
95
|
let [baseUrl, fbBaseUrl] = getRunConfigEnv(UrlService.extractDomain());
|
|
92
96
|
|
|
93
97
|
if (config.env) {
|