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:
parent
0e4661c76b
commit
e77d3cb46d
3 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) { }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue