Поправки дефолтных сетевых библиотек для режима omnireader
This commit is contained in:
@@ -38,7 +38,7 @@ class LibsPage {
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.libs) {
|
if (!this.libs || (this.mode = 'omnireader' && this.libs.mode !== this.mode)) {
|
||||||
const defaults = rstore.getLibsDefaults(this.mode);
|
const defaults = rstore.getLibsDefaults(this.mode);
|
||||||
this.commit('reader/setLibs', defaults);
|
this.commit('reader/setLibs', defaults);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -236,6 +236,7 @@ function getLibsDefaults(mode = 'reader') {
|
|||||||
openInFrameOnEnter: false,
|
openInFrameOnEnter: false,
|
||||||
openInFrameOnAdd: false,
|
openInFrameOnAdd: false,
|
||||||
helpShowed: false,
|
helpShowed: false,
|
||||||
|
mode,
|
||||||
groups: [
|
groups: [
|
||||||
{r: 'http://samlib.ru', s: 'http://samlib.ru', list: [
|
{r: 'http://samlib.ru', s: 'http://samlib.ru', list: [
|
||||||
{l: 'http://samlib.ru', c: 'Журнал "Самиздат"'},
|
{l: 'http://samlib.ru', c: 'Журнал "Самиздат"'},
|
||||||
|
|||||||
Reference in New Issue
Block a user