fix translatability of maintenance page

This commit is contained in:
Ulf Gebhardt 2023-02-24 01:16:59 +01:00
parent 8082bb0188
commit 18ccddeaf8
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -36,7 +36,7 @@ export default ({ app, req, cookie, store }) => {
}
const expires = new Date()
expires.setDate(expires.getDate() + app.$env.COOKIE_EXPIRE_TIME)
expires.setDate(expires.getDate() + app.$env && app.$env.COOKIE_EXPIRE_TIME)
app.$cookies.set(key, localeInStore, {
expires,
// maxAge: app.$env.COOKIE_EXPIRE_TIME * 60 * 60 * 24, // days to seconds