mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
refactor: unify frontend initializers naming (#4003)
* refactor: use consistent naming for frontend initializers * refactor: use arrow functions for frontend initializers
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import app from 'flarum/admin/app';
|
||||
|
||||
app.initializers.add('flarum-mentions', function () {
|
||||
app.initializers.add('flarum-mentions', () => {
|
||||
app.extensionData
|
||||
.for('flarum-mentions')
|
||||
.registerSetting({
|
||||
|
@@ -17,7 +17,7 @@ app.mentionFormats = new MentionFormats();
|
||||
|
||||
export { default as extend } from './extend';
|
||||
|
||||
app.initializers.add('flarum-mentions', function () {
|
||||
app.initializers.add('flarum-mentions', () => {
|
||||
// For every mention of a post inside a post's content, set up a hover handler
|
||||
// that shows a preview of the mentioned post.
|
||||
addPostMentionPreviews();
|
||||
|
Reference in New Issue
Block a user