This commit is contained in:
2026-10-18 23:48:36 +07:00
parent d3681d9df5
commit a58f0866d3
4 changed files with 83 additions and 0 deletions
+2
View File
@@ -25,6 +25,7 @@ import { Online } from './online.js'
import type { OnlineState } from '../src/types/online.js'
import { PackageStore } from './package-store.js'
import { packageMediaResponse } from './package-media.js'
import { prepareFetchHeaders } from './response-headers.js'
import type { HostInfo } from '../src/types/screen.js'
// Ozone выбирается до main.js; поздний appendSwitch смешивает Wayland и X11.
@@ -334,6 +335,7 @@ app
diagnostics.record('settings-error')
hostNotice = error instanceof Error ? error.message : 'Не удалось восстановить окна'
}
prepareFetchHeaders(session.defaultSession)
const fetchNetwork: typeof fetch = (input, init) =>
net.fetch(input instanceof URL ? input.href : input, init)
const packages = new PackageStore(join(app.getPath('userData'), 'packages'), {