Add consent cookie to fix comments and various problems
This commit is contained in:
parent
eff45f7495
commit
7b3f67073b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue