mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 16:15:50 +08:00
hotfix cache upload image
This commit is contained in:
@@ -16,7 +16,7 @@ self.addEventListener("install", function (event) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function jsonify(data) {
|
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) {
|
async function upload(request, url) {
|
||||||
|
Reference in New Issue
Block a user