Fix extension to work with latest state changes

This commit is contained in:
Alexander Skvortsov 2020-07-01 20:20:38 -04:00
parent 4d10a5663f
commit 9cc73f6800

View File

@ -3,5 +3,5 @@ import app from 'flarum/app';
import AkismetSettingsModal from './components/AkismetSettingsModal';
app.initializers.add('flarum-akismet', () => {
app.extensionSettings['flarum-akismet'] = () => app.modal.show(new AkismetSettingsModal());
app.extensionSettings['flarum-akismet'] = () => app.modal.show(AkismetSettingsModal);
});