From b24c3a28acd4d037e0510ce2cd99b6e8dd4bcc2d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 28 Sep 2018 19:52:09 +0200 Subject: [PATCH] account for Tor country --- src/store/provider.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/provider.jsx b/src/store/provider.jsx index be09583..bae29b5 100644 --- a/src/store/provider.jsx +++ b/src/store/provider.jsx @@ -68,13 +68,13 @@ export default class AppProvider extends PureComponent { // darkMode() { const now = new Date().getHours() - + const { location } = this.state // fallback times, in hours let sunrise = 7 let sunset = 19 // times based on detected country code - if (this.state.location && this.state.location !== 'XX') { + if (location && location !== 'XX' && location !== 'T1') { const country = this.state.location.toLowerCase() const times = SunCalc.getTimes( new Date(),