mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 22:52:08 +08:00
feat: enable additional GPU channel features and improve crash reportdetails in renderer (#8819)
feat: enable additional GPU channel features and improve crash report details in renderer
This commit is contained in:
parent
acbb35088c
commit
41e8a445ca
@ -56,8 +56,14 @@ if (isLinux && process.env.XDG_SESSION_TYPE === 'wayland') {
|
|||||||
app.commandLine.appendSwitch('enable-features', 'GlobalShortcutsPortal')
|
app.commandLine.appendSwitch('enable-features', 'GlobalShortcutsPortal')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable features for unresponsive renderer js call stacks
|
// DocumentPolicyIncludeJSCallStacksInCrashReports: Enable features for unresponsive renderer js call stacks
|
||||||
app.commandLine.appendSwitch('enable-features', 'DocumentPolicyIncludeJSCallStacksInCrashReports')
|
// EarlyEstablishGpuChannel,EstablishGpuChannelAsync: Enable features for early establish gpu channel
|
||||||
|
// speed up the startup time
|
||||||
|
// https://github.com/microsoft/vscode/pull/241640/files
|
||||||
|
app.commandLine.appendSwitch(
|
||||||
|
'enable-features',
|
||||||
|
'DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync'
|
||||||
|
)
|
||||||
app.on('web-contents-created', (_, webContents) => {
|
app.on('web-contents-created', (_, webContents) => {
|
||||||
webContents.session.webRequest.onHeadersReceived((details, callback) => {
|
webContents.session.webRequest.onHeadersReceived((details, callback) => {
|
||||||
callback({
|
callback({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user