Testing remove emojify from public.js
This commit is contained in:
parent
c912c2d585
commit
caee7dacf2
@ -27,7 +27,7 @@ function main ( ) {
|
|||||||
const IntlMessageFormat = require('intl-messageformat').default;
|
const IntlMessageFormat = require('intl-messageformat').default;
|
||||||
const { timeAgoString } = require('../gabsocial/components/relative_timestamp');
|
const { timeAgoString } = require('../gabsocial/components/relative_timestamp');
|
||||||
const { delegate } = require('rails-ujs');
|
const { delegate } = require('rails-ujs');
|
||||||
const emojify = require('../gabsocial/components/emoji/emoji').default;
|
// const emojify = require('../gabsocial/components/emoji/emoji').default;
|
||||||
const { getLocale } = require('../gabsocial/locales');
|
const { getLocale } = require('../gabsocial/locales');
|
||||||
const { messages } = getLocale();
|
const { messages } = getLocale();
|
||||||
//(Rjc) 2019-05-24 defined but never used
|
//(Rjc) 2019-05-24 defined but never used
|
||||||
@ -57,9 +57,9 @@ function main ( ) {
|
|||||||
minute: 'numeric',
|
minute: 'numeric',
|
||||||
});
|
});
|
||||||
|
|
||||||
[].forEach.call(document.querySelectorAll('.emojify'), (content) => {
|
// [].forEach.call(document.querySelectorAll('.emojify'), (content) => {
|
||||||
content.innerHTML = emojify(content.innerHTML);
|
// content.innerHTML = emojify(content.innerHTML);
|
||||||
});
|
// });
|
||||||
|
|
||||||
[].forEach.call(document.querySelectorAll('time.formatted'), (content) => {
|
[].forEach.call(document.querySelectorAll('time.formatted'), (content) => {
|
||||||
const datetime = new Date(content.getAttribute('datetime'));
|
const datetime = new Date(content.getAttribute('datetime'));
|
||||||
@ -154,7 +154,7 @@ function main ( ) {
|
|||||||
const name = document.querySelector('.card .display-name strong');
|
const name = document.querySelector('.card .display-name strong');
|
||||||
if (name) {
|
if (name) {
|
||||||
if (target.value) {
|
if (target.value) {
|
||||||
name.innerHTML = emojify(escapeTextContentForBrowser(target.value));
|
// name.innerHTML = emojify(escapeTextContentForBrowser(target.value));
|
||||||
} else {
|
} else {
|
||||||
name.textContent = document.querySelector('#default_account_display_name').textContent;
|
name.textContent = document.querySelector('#default_account_display_name').textContent;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user