瀏覽代碼

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