Fix extension to work with latest state changes

This commit is contained in:
Alexander Skvortsov 2020-07-01 20:15:12 -04:00
parent 24bf30d752
commit eae4967c2d

View File

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