mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-16 08:54:47 +02:00
Add settings page with adjustable jump forward/backward settings
This commit is contained in:
parent
a41e26e4c6
commit
3c1120ea48
13 changed files with 162 additions and 66 deletions
|
@ -13,7 +13,8 @@ class AbsDatabaseWeb extends WebPlugin {
|
|||
const deviceData = {
|
||||
serverConnectionConfigs: [],
|
||||
lastServerConnectionConfigId: null,
|
||||
currentLocalPlaybackSession: null
|
||||
currentLocalPlaybackSession: null,
|
||||
deviceSettings: {}
|
||||
}
|
||||
return deviceData
|
||||
}
|
||||
|
@ -209,6 +210,13 @@ class AbsDatabaseWeb extends WebPlugin {
|
|||
// { localLibraryItemId, localEpisodeId, isFinished }
|
||||
return null
|
||||
}
|
||||
|
||||
async updateDeviceSettings(payload) {
|
||||
var deviceData = await this.getDeviceData()
|
||||
deviceData.deviceSettings = payload
|
||||
localStorage.setItem('device', JSON.stringify(deviceData))
|
||||
return deviceData
|
||||
}
|
||||
}
|
||||
|
||||
const AbsDatabase = registerPlugin('AbsDatabase', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue