mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(electron): adjust tab styles (#7919)
 fix AF-1261
This commit is contained in:
@@ -105,7 +105,8 @@ export function registerProtocol() {
|
||||
session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
|
||||
const url = new URL(details.url);
|
||||
const pathname = url.pathname;
|
||||
// if sending request to the cloud, attach the session cookie
|
||||
// session cookies are set to file:// on production
|
||||
// if sending request to the cloud, attach the session cookie (to affine cloud server)
|
||||
if (isNetworkResource(pathname)) {
|
||||
const cookie = getCookies();
|
||||
if (cookie) {
|
||||
|
||||
Reference in New Issue
Block a user