Import upstream's emojify function in settings.js

This fixes updating the profile preview when changing display name.
th-downstream
Thibaut Girka 6 years ago committed by ThibG
parent d99f8674ab
commit dfe8240f8d

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

Loading…
Cancel
Save