From 6f0846b2afc34ef363171cd81bbbb70246fec243 Mon Sep 17 00:00:00 2001 From: lloydzhou Date: Thu, 25 Jul 2024 17:26:16 +0800 Subject: [PATCH] hotfix cache upload image --- public/serviceWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/serviceWorker.js b/public/serviceWorker.js index bf7727b67..e88a4a4ef 100644 --- a/public/serviceWorker.js +++ b/public/serviceWorker.js @@ -16,7 +16,7 @@ self.addEventListener("install", function (event) { }); function jsonify(data) { - return Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } }) + return new Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } }) } async function upload(request, url) {