Поправки дефолтных сетевых библиотек для режима omnireader

This commit is contained in:
Book Pauk
2022-12-18 14:35:40 +07:00
parent f00700cb41
commit 7b7146b502
2 changed files with 2 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ class LibsPage {
i++;
}
if (!this.libs) {
if (!this.libs || (this.mode = 'omnireader' && this.libs.mode !== this.mode)) {
const defaults = rstore.getLibsDefaults(this.mode);
this.commit('reader/setLibs', defaults);
}

View File

@@ -236,6 +236,7 @@ function getLibsDefaults(mode = 'reader') {
openInFrameOnEnter: false,
openInFrameOnAdd: false,
helpShowed: false,
mode,
groups: [
{r: 'http://samlib.ru', s: 'http://samlib.ru', list: [
{l: 'http://samlib.ru', c: 'Журнал "Самиздат"'},