mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-25 03:41:02 +00:00
fix: headers for auth window
This commit is contained in:
@@ -80,6 +80,10 @@ export class WindowManager {
|
|||||||
|
|
||||||
this.mainWindow.webContents.session.webRequest.onBeforeSendHeaders(
|
this.mainWindow.webContents.session.webRequest.onBeforeSendHeaders(
|
||||||
(details, callback) => {
|
(details, callback) => {
|
||||||
|
if (details.webContentsId !== this.mainWindow?.webContents.id) {
|
||||||
|
return callback(details);
|
||||||
|
}
|
||||||
|
|
||||||
const userAgent = new UserAgent();
|
const userAgent = new UserAgent();
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
|
|||||||
Reference in New Issue
Block a user