diff --git a/src/node/index.js b/src/node/index.js index 96dcfab..51683c2 100644 --- a/src/node/index.js +++ b/src/node/index.js @@ -1,6 +1,6 @@ import fs from 'fs' import yargs from 'yargs' -import { app, shell, BrowserWindow } from 'electron' +import { app, shell, session, BrowserWindow } from 'electron' import { pollPublicData, pollSpreadsheetData, StreamIDGenerator } from './data' import StreamWindow from './StreamWindow' @@ -49,6 +49,13 @@ async function main() { }) .help().argv + // Reject all permission requests from web content. + session + .fromPartition('persist:session') + .setPermissionRequestHandler((webContents, permission, callback) => { + callback(false) + }) + const idGen = new StreamIDGenerator() const streamWindow = new StreamWindow()