mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
get cache-busted url for languages.json through file-loader requiring it
This commit is contained in:
parent
d40da42268
commit
f240efb36d
1 changed files with 2 additions and 1 deletions
|
@ -338,8 +338,9 @@ export function getCurrentLanguage() {
|
|||
|
||||
function getLangsJson() {
|
||||
return new Promise((resolve, reject) => {
|
||||
const url = require("../../riot-web/webapp/i18n/languages.json");
|
||||
request(
|
||||
{ method: "GET", url: i18nFolder + 'languages.json' },
|
||||
{ method: "GET", url },
|
||||
(err, response, body) => {
|
||||
if (err || response.status < 200 || response.status >= 300) {
|
||||
reject({err: err, response: response});
|
||||
|
|
Loading…
Reference in a new issue