Работа над LibsPage

This commit is contained in:
Book Pauk
2020-10-29 23:05:26 +07:00
parent 18ac04bb0f
commit 25648e2327
4 changed files with 19 additions and 4 deletions

View File

@@ -25,10 +25,14 @@ class LibsPage extends Vue {
created() {
this.popupWindow = null;
this.commit = this.$store.commit;
this.messageListener = null;
//this.commit('reader/setLibs', rstore.libsDefaults);
}
init() {
if (this.mode != 'liberama.top')
return;
this.childReady = false;
const subdomain = (window.location.protocol != 'http:' ? 'b.' : '');
this.origin = `http://${subdomain}${window.location.host}`;
@@ -100,6 +104,10 @@ class LibsPage extends Vue {
}
}
get mode() {
return this.$store.state.config.mode;
}
get libs() {
return this.$store.state.reader.libs;
}