mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 17:21:33 +00:00
chore: temp update client version in dev mode
This commit is contained in:
parent
95e5956313
commit
0633f2c78e
@ -256,6 +256,9 @@ safe.use('/api', api)
|
||||
utils.versionStrings = {}
|
||||
if (config.cacheControl) {
|
||||
const versions = require('./src/versions')
|
||||
if (versions['1'] && utils.devmode) {
|
||||
versions['1'] = String(Math.ceil(Date.now() / 1000))
|
||||
}
|
||||
for (const type in versions) {
|
||||
utils.versionStrings[type] = `?_=${versions[type]}`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user