ensure we sync settings whilst tab is open

This commit is contained in:
FloatingGhost 2022-10-08 11:55:48 +01:00
parent 80f58baa86
commit 7df49720de
4 changed files with 8872 additions and 9296 deletions

View file

@ -1,9 +1,10 @@
import { promiseInterval } from '../promise_interval/promise_interval.js'
const startFetching = ({ credentials, store }) => {
console.log('startFetching: Config')
const boundFetchAndUpdate = () => store.dispatch('getSettingsProfile')
boundFetchAndUpdate()
return promiseInterval(boundFetchAndUpdate, 5 * 60000)
return promiseInterval(boundFetchAndUpdate, 10 * 60000)
}
const configFetcher = {