Remove redundant ready() wrapper (#26533)
parent
1cb978bcc3
commit
bb51c0676d
|
@ -65,7 +65,6 @@ function loaded() {
|
|||
};
|
||||
};
|
||||
|
||||
ready(() => {
|
||||
const locale = document.documentElement.lang;
|
||||
|
||||
const dateTimeFormat = new Intl.DateTimeFormat(locale, {
|
||||
|
@ -219,7 +218,7 @@ function loaded() {
|
|||
const message = (statusEl.dataset.spoiler === 'expanded') ? (localeData['status.show_less'] || 'Show less') : (localeData['status.show_more'] || 'Show more');
|
||||
spoilerLink.textContent = (new IntlMessageFormat(message, locale)).format();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
delegate(document, '#account_display_name', 'input', ({ target }) => {
|
||||
const name = document.querySelector('.card .display-name strong');
|
||||
|
@ -344,8 +343,6 @@ function loaded() {
|
|||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function main() {
|
||||
ready(loaded);
|
||||
|
|
Loading…
Reference in New Issue