mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-29 06:18:51 +02:00
Map locally stored ebook settings onto defaults
This commit is contained in:
parent
81130e04e5
commit
eb2aa6f773
1 changed files with 5 additions and 5 deletions
|
@ -376,12 +376,12 @@ export default {
|
||||||
try {
|
try {
|
||||||
const settings = localStorage.getItem('ereaderSettings')
|
const settings = localStorage.getItem('ereaderSettings')
|
||||||
if (settings) {
|
if (settings) {
|
||||||
const ereaderSettings = JSON.parse(settings)
|
const _ereaderSettings = JSON.parse(settings)
|
||||||
if (!ereaderSettings.spread) {
|
for (const key in this.ereaderSettings) {
|
||||||
// Added in 0.9.71
|
if (_ereaderSettings[key] !== undefined) {
|
||||||
ereaderSettings.spread = 'auto'
|
this.ereaderSettings[key] = _ereaderSettings[key]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.ereaderSettings = ereaderSettings
|
|
||||||
this.settingsUpdated()
|
this.settingsUpdated()
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue