fix(electron): adjust tab styles (#7919)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/121ee595-99f0-43cb-be5f-ca1bdd15d6ca.png)

fix AF-1261
This commit is contained in:
pengx17
2024-08-19 06:15:06 +00:00
parent 4916eea24f
commit 4a89b1a5dd
3 changed files with 61 additions and 49 deletions

View File

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