better fix

This commit is contained in:
Neil Lalonde 2018-05-04 14:45:32 -04:00
parent b4f6beebd1
commit cc701d2f7c
1 changed files with 3 additions and 1 deletions

View File

@ -23,10 +23,12 @@ function addLocalDate(buffer, matches, state) {
['class', 'discourse-local-date'],
['data-date', config.date],
['data-time', config.time],
['data-recurring', config.recurring],
['data-format', config.format],
['data-timezones', config.timezones],
];
if (config.recurring) {
token.attrs.push(['data-recurring', config.recurring]);
}
buffer.push(token);
const previews = config.timezones.split("|").filter(t => t).map(timezone => {