mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:41:17 +08:00
PERF: generates dates tooltip on demand (#13944)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user