From d6a67f73098e11768a66caee92efff87a0ed5d99 Mon Sep 17 00:00:00 2001 From: Benoit Schweblin Date: Fri, 30 Mar 2018 13:44:23 +0100 Subject: [PATCH] Optimized light mode --- src/components/SideBar.vue | 2 +- src/services/sponsorSvc.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/SideBar.vue b/src/components/SideBar.vue index b5b1dd0f..d7ccd06f 100644 --- a/src/components/SideBar.vue +++ b/src/components/SideBar.vue @@ -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]; diff --git a/src/services/sponsorSvc.js b/src/services/sponsorSvc.js index d643d2fb..26807542 100644 --- a/src/services/sponsorSvc.js +++ b/src/services/sponsorSvc.js @@ -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()