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,11 +100,13 @@ export default class MetaTagging {
tags["_isOpen:description"] = comment; tags["_isOpen:description"] = comment;
} }
const nextChange = oh.getNextChange() as Date; const nextChange = oh.getNextChange() as Date;
if (nextChange !== undefined) {
window.setTimeout( window.setTimeout(
updateTags, updateTags,
(nextChange.getTime() - (new Date()).getTime()) (nextChange.getTime() - (new Date()).getTime())
) )
} }
}
updateTags(); updateTags();
} }