From d7c775a7d2df82316255a42475f7a58bdd79c7ea Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 23 Dec 2023 05:20:58 +0100 Subject: WIP: Compute dhash ourselves --- public/gallery.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'public') 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}`, -- cgit v1.2.3-70-g09d2