Import upstream's emojify function in settings.js

This fixes updating the profile preview when changing display name.
pull/626/head
Thibaut Girka 2018-08-02 17:22:08 +02:00 committed by ThibG
parent ed69117048
commit 5e6cec4a40
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
const { length } = require('stringz'); const { length } = require('stringz');
const { delegate } = require('rails-ujs'); const { delegate } = require('rails-ujs');
import emojify from '../mastodon/features/emoji/emoji';
delegate(document, '#account_display_name', 'input', ({ target }) => { delegate(document, '#account_display_name', 'input', ({ target }) => {
const nameCounter = document.querySelector('.name-counter'); const nameCounter = document.querySelector('.name-counter');