Explorar o código

fix webserver

marek hai 1 mes
pai
achega
29eb259936
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      routes/include/main.js

+ 1 - 1
routes/include/main.js

@@ -12,7 +12,7 @@ export default (langName, lang) => new Elysia()
     const data = Meteostanica.getData()
 
     set.headers['content-type'] = 'text/html; charset=utf8'
-    return eta.render(`${langName}/index`, { data })
+    return eta.render(`${langName}/index`, { lang, data })
   })
   .get('/settings', ({ set }) => {
     set.headers['content-type'] = 'text/html; charset=utf8'