mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Use $webapp rather than Webapp
This commit is contained in:
parent
f2328904cd
commit
4f84311bde
@ -340,8 +340,8 @@ function getLangsJson() {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
let url;
|
let url;
|
||||||
try {
|
try {
|
||||||
// Webapp is a webpack resolve alias pointing to the output directory, see webpack config
|
// $webapp is a webpack resolve alias pointing to the output directory, see webpack config
|
||||||
url = require('Webapp/i18n/languages.json');
|
url = require('$webapp/i18n/languages.json');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
url = i18nFolder + 'languages.json';
|
url = i18nFolder + 'languages.json';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user