mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: headers for auth window
This commit is contained in:
parent
614c840aac
commit
7f8fd32cfe
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,10 @@ export class WindowManager {
|
|||
|
||||
this.mainWindow.webContents.session.webRequest.onBeforeSendHeaders(
|
||||
(details, callback) => {
|
||||
if (details.webContentsId !== this.mainWindow?.webContents.id) {
|
||||
return callback(details);
|
||||
}
|
||||
|
||||
const userAgent = new UserAgent();
|
||||
|
||||
callback({
|
||||
|
|
Loading…
Add table
Reference in a new issue