Don't cache config.json

This commit is contained in:
N-Pex 2023-10-13 09:31:45 +02:00
parent 4f92c5b92a
commit 9720ca9498

View file

@ -2,7 +2,7 @@ export default {
install(Vue, defaultServerFromLocation, onloaded) {
var config = Vue.observable(require('@/assets/config.json'));
const getRuntimeConfig = () => {
return fetch('./config.json').then((res) => res.json()).catch(err => {
return fetch('./config.json?ms=' + Date.now()).then((res) => res.json()).catch(err => {
console.error("Failed to get config:", err);
return {};
});