diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2023-12-23 05:20:58 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2023-12-23 05:51:15 +0100 |
commit | d7c775a7d2df82316255a42475f7a58bdd79c7ea (patch) | |
tree | d793224b5dd83e0bf73ffa8d5a31edbe94000866 /public/gallery.js | |
parent | 5b87208932a8979193bf1ddc9cf99683685526e3 (diff) | |
download | gallery-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.js | 4 |
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}`, |