mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-15 08:23:02 -03:00
feat: update ww webRequest interceptor
This commit is contained in:
@@ -138,12 +138,21 @@ export class WindowManager {
|
|||||||
(details, callback) => {
|
(details, callback) => {
|
||||||
if (
|
if (
|
||||||
details.webContentsId !== this.mainWindow?.webContents.id ||
|
details.webContentsId !== this.mainWindow?.webContents.id ||
|
||||||
details.url.includes("chatwoot") ||
|
details.url.includes("chatwoot")
|
||||||
details.url.includes("workwonders")
|
|
||||||
) {
|
) {
|
||||||
return callback(details);
|
return callback(details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (details.url.includes("workwonders")) {
|
||||||
|
return callback({
|
||||||
|
...details,
|
||||||
|
requestHeaders: {
|
||||||
|
Origin: "https://workwonders.app",
|
||||||
|
...details.requestHeaders,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const userAgent = new UserAgent();
|
const userAgent = new UserAgent();
|
||||||
|
|
||||||
callback({
|
callback({
|
||||||
|
|||||||
Reference in New Issue
Block a user