Add second consent cookie for compatibility

This commit is contained in:
Preston 2021-04-07 17:33:56 -04:00 committed by GitHub
parent 7b3f67073b
commit e155426700
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -253,6 +253,12 @@ function createWindow (useProxy = false, proxyUrl = '') {
name: 'CONSENT',
value: 'YES+'
})
mainWindow.webContents.session.cookies.set({
url: 'https://consent.youtube.com',
name: 'CONSENT',
value: 'YES+'
})
settingsDb.findOne({
_id: 'bounds'