mirror of
https://github.com/generativefm/generative.fm.git
synced 2026-01-10 07:07:59 -05:00
Reenable patreon notification
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user