fix: add a User-Agent
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -27,7 +27,7 @@
|
||||
class="container mx-auto z-10 rounded-xl max-h-[60vh] relative overflow-hidden bg-slate-100 dark:bg-zinc-900"
|
||||
data-sveltekit-preload-data="off"
|
||||
aria-label={post.name}
|
||||
onclick={() => showImage(bestImageURL(post, false, -1))}
|
||||
onclick={() => showImage(bestImageURL(post, false, -1, null))}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
|
||||
@@ -34,6 +34,7 @@ async function customFetch(
|
||||
if (init) {
|
||||
init.headers = {
|
||||
...init.headers,
|
||||
'User-Agent': `Photon/${__VERSION__}`,
|
||||
...(auth ? { authorization: `Bearer ${auth}` } : {}),
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user