@nuskin/ns-util
Advanced tools
Comparing version 4.2.5 to 4.2.6
{ | ||
"name": "@nuskin/ns-util", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"baseURL": "/", | ||
@@ -5,0 +5,0 @@ "main": "src/util.js", |
@@ -109,10 +109,7 @@ import nuskin from './namespace.js'; // import global namespace we can attach to | ||
let runConfig = RunConfigService.getRunConfig(); | ||
if (!config.language || !config.country) { | ||
const [language, country] = UrlService.getLocaleFromUrl(); | ||
const [language, country] = UrlService.getLocaleFromUrl(); | ||
// use locale on URL, else use en_US | ||
config.language = language || 'en'; | ||
config.country = country || 'US'; | ||
// use locale on URL, else use locale in existing runConfig, else use en_US | ||
config.language = language || runConfig.language || 'en'; | ||
config.country = country || runConfig.country || 'US'; | ||
} | ||
config.assessmentApp = config.assessmentApp || false; | ||
@@ -119,0 +116,0 @@ config.id = Math.floor(Math.random() * 1000000000000); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
366160
9077