@knowlearning/agents 0.9.160 → 0.9.161
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/agents/browser/root.js +1 -1
- package/package.json +1 -1
package/agents/browser/root.js
CHANGED
|
@@ -8,7 +8,7 @@ const SECURE = window.location.protocol === 'https:'
|
|
|
8
8
|
const DEVELOPMENT_HOST = `localhost:3200${ SECURE ? '1' : '2' }`
|
|
9
9
|
const ENVIRONMENT_API_HOST = localStorage.getItem('API_HOST')
|
|
10
10
|
const REMOTE_HOST = window.location.hostname === TEST_DOMAIN && ENVIRONMENT_API_HOST ? ENVIRONMENT_API_HOST : 'api.knowlearning.systems'
|
|
11
|
-
const LANGUAGES = navigator.languages
|
|
11
|
+
const LANGUAGES = [...navigator.languages]
|
|
12
12
|
|
|
13
13
|
function isLocal() { return localStorage.getItem('api') === 'local' }
|
|
14
14
|
|