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