Compare commits
2 Commits
40c539189a
...
77240ae18d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77240ae18d | ||
|
|
90c73c4091 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.6.75",
|
"version": "1.6.76",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -173,6 +173,10 @@ export class BestDebridWebFallback {
|
|||||||
existing.close();
|
existing.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set user agent on session level so Cloudflare Turnstile sees a real Chrome
|
||||||
|
const currentSession = session.fromPartition(partition);
|
||||||
|
currentSession.setUserAgent(BESTDEBRID_USER_AGENT);
|
||||||
|
|
||||||
const window = new BrowserWindow({
|
const window = new BrowserWindow({
|
||||||
width: 1120,
|
width: 1120,
|
||||||
height: 900,
|
height: 900,
|
||||||
@ -186,6 +190,7 @@ export class BestDebridWebFallback {
|
|||||||
nodeIntegration: false
|
nodeIntegration: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
window.webContents.setUserAgent(BESTDEBRID_USER_AGENT);
|
||||||
window.setMenuBarVisibility(false);
|
window.setMenuBarVisibility(false);
|
||||||
window.on("closed", () => {
|
window.on("closed", () => {
|
||||||
if (this.loginWindow === window) {
|
if (this.loginWindow === window) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user