mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 11:42:23 +08:00
Optimized light mode
This commit is contained in:
parent
bde9cf0596
commit
d6a67f7309
|
@ -75,7 +75,7 @@ export default {
|
|||
}),
|
||||
computed: {
|
||||
panel() {
|
||||
return this.$store.getters['data/layoutSettings'].sideBarPanel;
|
||||
return !this.$store.state.light && this.$store.getters['data/layoutSettings'].sideBarPanel;
|
||||
},
|
||||
panelName() {
|
||||
return panelNames[this.panel];
|
||||
|
|
|
@ -23,8 +23,11 @@ const isGoogleSponsor = () => {
|
|||
|
||||
const checkPayment = () => {
|
||||
const currentDate = Date.now();
|
||||
if (!isGoogleSponsor() && networkSvc.isUserActive() && !store.state.offline &&
|
||||
lastCheck + checkPaymentEvery < currentDate
|
||||
if (!isGoogleSponsor()
|
||||
&& networkSvc.isUserActive()
|
||||
&& !store.state.offline
|
||||
&& !store.state.light
|
||||
&& lastCheck + checkPaymentEvery < currentDate
|
||||
) {
|
||||
lastCheck = currentDate;
|
||||
getMonetize()
|
||||
|
|
Loading…
Reference in New Issue
Block a user