فهرست منبع

hotfix cache upload image

lloydzhou 1 سال پیش
والد
کامیت
6f0846b2af
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      public/serviceWorker.js

+ 1 - 1
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) {