Skip to content

Commit 6f0846b

Browse files
committed
hotfix cache upload image
1 parent ecd78b3 commit 6f0846b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/serviceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ self.addEventListener("install", function (event) {
1616
});
1717

1818
function jsonify(data) {
19-
return Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } })
19+
return new Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } })
2020
}
2121

2222
async function upload(request, url) {

0 commit comments

Comments
 (0)