We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecd78b3 commit 6f0846bCopy full SHA for 6f0846b
1 file changed
public/serviceWorker.js
@@ -16,7 +16,7 @@ self.addEventListener("install", function (event) {
16
});
17
18
function jsonify(data) {
19
- return Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } })
+ return new Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } })
20
}
21
22
async function upload(request, url) {
0 commit comments