Add more URLs for consent cookie
This commit is contained in:
parent
3048e39106
commit
01da5277ee
|
@ -249,16 +249,18 @@ function createWindow (useProxy = false, proxyUrl = '') {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set CONSENT cookie on reasonable domains
|
||||||
|
[
|
||||||
|
'http://www.youtube.com',
|
||||||
|
'https://www.youtube.com',
|
||||||
|
'http://youtube.com',
|
||||||
|
'https://youtube.com'
|
||||||
|
].forEach(url => {
|
||||||
mainWindow.webContents.session.cookies.set({
|
mainWindow.webContents.session.cookies.set({
|
||||||
url: 'https://www.youtube.com',
|
url: url,
|
||||||
name: 'CONSENT',
|
name: 'CONSENT',
|
||||||
value: 'YES+'
|
value: 'YES+'
|
||||||
})
|
})
|
||||||
|
|
||||||
mainWindow.webContents.session.cookies.set({
|
|
||||||
url: 'https://consent.youtube.com',
|
|
||||||
name: 'CONSENT',
|
|
||||||
value: 'YES+'
|
|
||||||
})
|
})
|
||||||
|
|
||||||
settingsDb.findOne({
|
settingsDb.findOne({
|
||||||
|
|
Loading…
Reference in New Issue