aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/shareFranz/index.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 10:04:59 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 10:06:58 +0530
commitee7d9b0af920cc2021028faa52efe78d6ce0880a (patch)
treedba27bf1ee3b63c1e890f7a42436248d5e5c0067 /src/features/shareFranz/index.js
parentchore: set stricter rules for typescript conversion (diff)
downloadferdium-app-ee7d9b0af920cc2021028faa52efe78d6ce0880a.tar.gz
ferdium-app-ee7d9b0af920cc2021028faa52efe78d6ce0880a.tar.zst
ferdium-app-ee7d9b0af920cc2021028faa52efe78d6ce0880a.zip
chore: remove 'shareFranz' feature since its always turned off for Ferdi
Diffstat (limited to 'src/features/shareFranz/index.js')
-rw-r--r--src/features/shareFranz/index.js35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js
deleted file mode 100644
index 9add0f65e..000000000
--- a/src/features/shareFranz/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
1import { reaction } from 'mobx';
2import ms from 'ms';
3import { state as ModalState } from './store';
4
5export { default as Component } from './Component';
6
7const debug = require('debug')('Ferdi:feature:shareFranz');
8
9const state = ModalState;
10
11export default function initialize(stores) {
12 debug('Initialize shareFerdi feature');
13
14 window.ferdi.features.shareFerdi = {
15 state,
16 };
17
18 function showModal() {
19 debug('Would have showed share window');
20 }
21
22 reaction(
23 () => stores.user.isLoggedIn,
24 () => {
25 setTimeout(() => {
26 if (stores.settings.stats.appStarts % 50 === 0) {
27 showModal();
28 }
29 }, ms('2s'));
30 },
31 {
32 fireImmediately: true,
33 },
34 );
35}