Add consent cookie to fix comments and various problems

This commit is contained in:
Preston 2021-04-07 16:39:14 -04:00
parent eff45f7495
commit 7b3f67073b
1 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { app, BrowserWindow, Menu, ipcMain, screen } from 'electron'
import { app, BrowserWindow, Menu, ipcMain, session, screen } from 'electron'
import { productName } from '../../package.json'
import Datastore from 'nedb'
@ -248,6 +248,12 @@ function createWindow (useProxy = false, proxyUrl = '') {
})
}
mainWindow.webContents.session.cookies.set({
url: 'https://www.youtube.com',
name: 'CONSENT',
value: 'YES+'
})
settingsDb.findOne({
_id: 'bounds'
}, function (err, doc) {