#147 Added comment

This commit is contained in:
Serraniel 2020-12-28 18:38:49 +01:00
parent 56d8b718b3
commit 8d0fb9c94c
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -9,6 +9,9 @@ const DAYS = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
export function init() {
getGlobalConfiguration().getProperty(SETTINGS_websiteAutoTimeConversion, value => {
if (value) {
// The regexp pattern matches anything except the airing page.
// This is because we would have to restructure the complete site to update time data.
// Additionally, there is a big hint that all data would be UTC+1
core.runAfterLoad(() => {
updateTimestamps(document.documentElement);
}, "^/(?!airing).*$");