mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Update:Library folder browser to not save folders from request #1371
This commit is contained in:
parent
5a26704c32
commit
ddabd0ee75
@ -70,8 +70,8 @@ export const actions = {
|
||||
},
|
||||
loadFolders({ state, commit }) {
|
||||
if (state.folders.length) {
|
||||
var lastCheck = Date.now() - state.folderLastUpdate
|
||||
if (lastCheck < 1000 * 60 * 10) { // 10 minutes
|
||||
const lastCheck = Date.now() - state.folderLastUpdate
|
||||
if (lastCheck < 1000 * 5) { // 5 seconds
|
||||
// Folders up to date
|
||||
return state.folders
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user