import app from 'flarum/app';

import AkismetSettingsModal from './components/AkismetSettingsModal';

app.initializers.add('flarum-akismet', () => {
  app.extensionSettings['flarum-akismet'] = () => app.modal.show(new AkismetSettingsModal());
});

import app from 'flarum/app';

import AkismetSettingsModal from './components/AkismetSettingsModal';

app.initializers.add('flarum-akismet', () => {
  app.extensionSettings['flarum-akismet'] = () => app.modal.show(AkismetSettingsModal);
});

Fix extension to work with latest state changes
 Fix extension to work with latest state changes
