1
0
Fork 0
mirror of https://github.com/alangrainger/immich-public-proxy.git synced 2024-12-28 03:41:58 +00:00

Fix #9 missing config.json settings

This commit is contained in:
Alan Grainger 2024-11-01 20:39:39 +01:00
parent 0e4661c76b
commit e77d3cb46d
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "immich-public-proxy",
"version": "1.3.2",
"version": "1.3.3",
"scripts": {
"dev": "ts-node src/index.ts",
"build": "npx tsc",

View file

@ -55,7 +55,7 @@ class Immich {
// Password required - show the visitor the password page
// `req.params.key` should already be sanitised at this point, but it never hurts to be explicit
const key = request.key.replace(/[^\w-]/g, '')
res.render('password', { key })
res.render('password', { key, lgConfig: render.lgConfig })
} else if (sharedLinkRes.link) {
// Valid shared link
const link = sharedLinkRes.link

View file

@ -51,7 +51,7 @@
})
if (res.status === 200) {
document.documentElement.innerHTML = await res.text()
initLightGallery() // from web.js
initLightGallery(<%- JSON.stringify(lgConfig) %>) // initLightGallery imported from web.js
}
} catch (e) { }
}