mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(electron): add search to proxied url (#4852)
This commit is contained in:
@@ -46,7 +46,10 @@ async function handleFileRequest(request: Request) {
|
|||||||
const urlObject = new URL(request.url);
|
const urlObject = new URL(request.url);
|
||||||
if (isNetworkResource(urlObject.pathname)) {
|
if (isNetworkResource(urlObject.pathname)) {
|
||||||
// just pass through (proxy)
|
// just pass through (proxy)
|
||||||
return net.fetch(CLOUD_BASE_URL + urlObject.pathname, clonedRequest);
|
return net.fetch(
|
||||||
|
CLOUD_BASE_URL + urlObject.pathname + urlObject.search,
|
||||||
|
clonedRequest
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
// this will be file types (in the web-static folder)
|
// this will be file types (in the web-static folder)
|
||||||
let filepath = '';
|
let filepath = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user