1
0
mirror of https://github.com/flarum/core.git synced 2025-08-13 03:44: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:
Davide Iadeluca
2024-06-22 11:45:17 +02:00
committed by GitHub
parent d52068cf5b
commit c8dc8f6922
7 changed files with 7 additions and 7 deletions

View File

@@ -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({

View File

@@ -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();