mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
cachebust config file requests
This commit is contained in:
parent
9de26ed062
commit
2cf1aabcba
@ -37,7 +37,7 @@ export async function getVectorConfig(relativeLocation) {
|
|||||||
function getConfig(configJsonFilename) {
|
function getConfig(configJsonFilename) {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
request(
|
request(
|
||||||
{ method: "GET", url: configJsonFilename },
|
{ method: "GET", url: configJsonFilename, qs: { cachebuster: Date.now() } },
|
||||||
(err, response, body) => {
|
(err, response, body) => {
|
||||||
try {
|
try {
|
||||||
if (err || response.status < 200 || response.status >= 300) {
|
if (err || response.status < 200 || response.status >= 300) {
|
||||||
|
Loading…
Reference in New Issue
Block a user