Remove redundant ready() wrapper (#26533)

This commit is contained in:
Christian Schmidt 2023-08-18 12:06:08 +02:00 committed by GitHub
parent 1cb978bcc3
commit bb51c0676d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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