PERF: generates dates tooltip on demand (#13944)

This commit is contained in:
Joffrey JAFFEUX
2021-08-04 16:28:07 +02:00
committed by GitHub
parent 6b87ae3d4c
commit 11668ee85b
3 changed files with 137 additions and 78 deletions

View File

@ -140,11 +140,7 @@ function closeBuffer(buffer, state, text) {
}
export function setup(helper) {
helper.allowList([
"span.discourse-local-date",
"span[data-*]",
"span[aria-label]",
]);
helper.allowList(["span.discourse-local-date", "span[aria-label]"]);
helper.registerOptions((opts, siteSettings) => {
opts.datesEmailFormat = siteSettings.discourse_local_dates_email_format;