Fix bug in Metatagging

This commit is contained in:
Pieter Vander Vennet 2020-10-19 13:05:36 +02:00
parent 99225957cc
commit 774d9a6df0

View file

@ -100,10 +100,12 @@ export default class MetaTagging {
tags["_isOpen:description"] = comment; tags["_isOpen:description"] = comment;
} }
const nextChange = oh.getNextChange() as Date; const nextChange = oh.getNextChange() as Date;
window.setTimeout( if (nextChange !== undefined) {
updateTags, window.setTimeout(
(nextChange.getTime() - (new Date()).getTime()) updateTags,
) (nextChange.getTime() - (new Date()).getTime())
)
}
} }
updateTags(); updateTags();
} }