From 2d4ee04e874e4420aa940c148c77c977188b9500 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Mon, 25 Feb 2019 16:34:18 +0100 Subject: Add dialog to share franz on social media --- src/features/delayApp/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/features/delayApp') diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index 48aac34b6..abc8274cf 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js @@ -28,8 +28,12 @@ export default function init(stores) { let shownAfterLaunch = false; let timeLastDelay = moment(); + window.franz.features.delayApp = { + state, + }; + reaction( - () => stores.features.features.needToWaitToProceed && !stores.user.data.isPremium, + () => stores.user.isLoggedIn && stores.features.features.needToWaitToProceed && !stores.user.data.isPremium, (isEnabled) => { if (isEnabled) { debug('Enabling `delayApp` feature'); -- cgit v1.2.3-54-g00ecf