mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-19 04:28:48 +00:00
Create post viewer
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
function proxyImage(url) {
|
||||
function proxyImage(url, width) {
|
||||
const params = new URLSearchParams()
|
||||
if (width) params.set("width", width)
|
||||
params.set("url", url)
|
||||
return "/imageproxy?"+params.toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user