Browse Source

fix webserver

marek 1 tháng trước cách đây
mục cha
commit
29eb259936
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'