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;
}
const nextChange = oh.getNextChange() as Date;
window.setTimeout(
updateTags,
(nextChange.getTime() - (new Date()).getTime())
)
if (nextChange !== undefined) {
window.setTimeout(
updateTags,
(nextChange.getTime() - (new Date()).getTime())
)
}
}
updateTags();
}