Skip to content

Commit

Permalink
Revert "Use setDisplayMediaRequestHandler instead (#2266)" (#2275)
Browse files Browse the repository at this point in the history
This reverts commit 1b83b36.
  • Loading branch information
sbenmoussati authored Jan 31, 2025
1 parent 9959873 commit 2e4dcee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
5 changes: 2 additions & 3 deletions src/app/chrome-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,14 @@ export const setChromeFlags = () => {
export const setSessionProperties = () => {
logger.info(`chrome-flags: Settings session properties`);
const { customFlags } = config.getConfigFields(['customFlags']) as IConfig;
const { defaultSession } = session;

if (
defaultSession &&
session.defaultSession &&
customFlags &&
customFlags.authServerWhitelist &&
customFlags.authServerWhitelist !== ''
) {
defaultSession.allowNTLMCredentialsForDomains(
session.defaultSession.allowNTLMCredentialsForDomains(
customFlags.authServerWhitelist,
);
}
Expand Down
20 changes: 0 additions & 20 deletions src/app/display-media-request-handler.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { cleanUpAppCache, createAppCacheFile } from './app-cache-handler';
import { setChromeFlags, setSessionProperties } from './chrome-flags';
import { config } from './config-handler';
import './dialog-handler';
import { setDisplayMediaRequestHandler } from './display-media-request-handler';
import './main-api-handler';
import { handlePerformanceSettings } from './perf-handler';
import { protocolHandler } from './protocol-handler';
Expand Down Expand Up @@ -109,7 +108,6 @@ const startApplication = async () => {
// Picks global config values and updates them in the user config
await config.updateUserConfigOnStart();
setSessionProperties();
setDisplayMediaRequestHandler();
await autoUpdate.init();
await windowHandler.createApplication();
logger.info(`main: created application`);
Expand Down

0 comments on commit 2e4dcee

Please sign in to comment.