File tree 1 file changed +2
-17
lines changed
src/features/spellchecker
1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const config = {
10
10
11
11
export default function init ( stores ) {
12
12
reaction (
13
- ( ) => stores . features . features . needToWaitToProceed ,
13
+ ( ) => stores . features . features . isSpellcheckerPremiumFeature ,
14
14
( enabled , r ) => {
15
15
if ( enabled ) {
16
16
debug ( 'Initializing `spellchecker` feature' ) ;
@@ -22,23 +22,8 @@ export default function init(stores) {
22
22
23
23
config . isPremiumFeature = isSpellcheckerPremiumFeature || DEFAULT_IS_PREMIUM_FEATURE ;
24
24
25
- // reaction(
26
- // () => stores.settings.all.app.enableSpellchecking,
27
- // (enabled, r) => {
28
- // if (enabled) {
29
- // // debug('Initializing `spellchecker` feature');
30
-
31
- // // // Dispose the reaction to run this only once
32
- // // r.dispose();
33
-
34
- // // const { isSpellcheckerPremiumFeature } = stores.features.features;
35
-
36
- // // config.isPremiumFeature = isSpellcheckerPremiumFeature || DEFAULT_IS_PREMIUM_FEATURE;
37
- // }
38
- // },
39
- // );
40
-
41
25
autorun ( ( ) => {
26
+ console . log ( 'FEATURE spellchecker autorun' , stores . user . data . isPremium , config . isPremiumFeature ) ;
42
27
if ( ! stores . user . data . isPremium && config . isPremiumFeature ) {
43
28
debug ( 'Override settings.spellcheckerEnabled flag to false' ) ;
44
29
You can’t perform that action at this time.
0 commit comments