aboutsummaryrefslogtreecommitdiff
path: root/public/gallery.js
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-23 05:20:58 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-23 05:51:15 +0100
commitd7c775a7d2df82316255a42475f7a58bdd79c7ea (patch)
treed793224b5dd83e0bf73ffa8d5a31edbe94000866 /public/gallery.js
parent5b87208932a8979193bf1ddc9cf99683685526e3 (diff)
downloadgallery-d7c775a7d2df82316255a42475f7a58bdd79c7ea.tar.gz
gallery-d7c775a7d2df82316255a42475f7a58bdd79c7ea.tar.xz
gallery-d7c775a7d2df82316255a42475f7a58bdd79c7ea.zip
WIP: Compute dhash ourselves
Diffstat (limited to 'public/gallery.js')
-rw-r--r--public/gallery.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/gallery.js b/public/gallery.js
index ca1e511..970a3bf 100644
--- a/public/gallery.js
+++ b/public/gallery.js
@@ -1,6 +1,10 @@
'use strict'
function call(method, params) {
+ // TODO: Make it apparent when results result in errors:
+ // - With responseType == "json", m.request() always expects JSON,
+ // and error.message is null if it fails, but we can handle it manually.
+ // - Go can wrap all errors into trivial strings before writing.
return m.request({
method: "POST",
url: `/api/${method}`,