Skip to content

Commit

Permalink
hotfix cache upload image
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jul 25, 2024
1 parent ecd78b3 commit 6f0846b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f0846b

Please sign in to comment.