Reenable patreon notification

This commit is contained in:
metalex9
2019-08-31 18:11:56 -05:00
parent 49ae936150
commit 8cd921ed59
2 changed files with 6 additions and 10 deletions

View File

@@ -7,10 +7,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Removed
- "Consider supporting on Patreon" notification will no longer appear
### Added
- AirPlay might be supported

View File

@@ -1,12 +1,12 @@
const patreon = {
message: 'Consider supporting Generative.fm on Patreon',
link: 'https://www.patreon.com/bePatron?u=2484731',
getIsTriggered: (/*state*/) => false,
// Reflect.ownKeys(state.playTime).reduce(
// (totalPlayTimeMS, pieceId) => totalPlayTimeMS + state.playTime[pieceId],
// 0
// ) >=
// 10 * 60 * 60 * 1000,
getIsTriggered: state =>
Reflect.ownKeys(state.playTime).reduce(
(totalPlayTimeMS, pieceId) => totalPlayTimeMS + state.playTime[pieceId],
0
) >=
10 * 60 * 60 * 1000,
};
export default { patreon };