mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-21 03:51:45 +08:00
fix(electron): do not restore window on get window (#5163)
fix https://github.com/toeverything/AFFiNE/issues/5161 Looks like I used window.restore incorrectly.
This commit is contained in:
@@ -119,8 +119,12 @@ export function registerProtocol() {
|
||||
// if sending request to the cloud, attach the session cookie
|
||||
if (isNetworkResource(pathname)) {
|
||||
const cookie = await getCookie(CLOUD_BASE_URL);
|
||||
const cookieString = cookie.map(c => `${c.name}=${c.value}`).join('; ');
|
||||
details.requestHeaders['cookie'] = cookieString;
|
||||
if (cookie) {
|
||||
const cookieString = cookie
|
||||
.map(c => `${c.name}=${c.value}`)
|
||||
.join('; ');
|
||||
details.requestHeaders['cookie'] = cookieString;
|
||||
}
|
||||
}
|
||||
callback({
|
||||
cancel: false,
|
||||
|
||||
Reference in New Issue
Block a user