Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sliezz committed Jan 5, 2025
1 parent 8aa4e67 commit 5ef2140
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/common/config-schemata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ export const configSchemata = {
export const enterpriseConfigSchemata = {
...configSchemata,
presetOrganizations: z.string().array(),
allowNTLMCredentialsForDomains: z.string().array(),
allowNtlmCredentialsForDomains: z.string().array(),
};
12 changes: 7 additions & 5 deletions app/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ import * as remoteMain from "@electron/remote/main";
import windowStateKeeper from "electron-window-state";

import * as ConfigUtil from "../common/config-util.js";
import * as EnterpriseUtil from "../common/enterprise-util.js";
import {bundlePath, bundleUrl, publicPath} from "../common/paths.js";
import * as t from "../common/translation-util.js";
import type {RendererMessage} from "../common/typed-ipc.js";
import type {MenuProperties} from "../common/types.js";

import * as EnterpriseUtil from "../common/enterprise-util.js";

import {appUpdater, shouldQuitForUpdate} from "./autoupdater.js";
import * as BadgeSettings from "./badge-settings.js";
import handleExternalLink from "./handle-external-link.js";
Expand Down Expand Up @@ -209,9 +208,12 @@ function createMainWindow(): BrowserWindow {
const ses = session.fromPartition("persist:webviewsession");
ses.setUserAgent(`ZulipElectron/${app.getVersion()} ${ses.getUserAgent()}`);

const allowNTLMCredentialsForDomains = EnterpriseUtil.getConfigItem("allowNTLMCredentialsForDomains", []);
for (const url of allowNTLMCredentialsForDomains) {
ses.allowNTLMCredentialsForDomains(url)
const allowNtlmCredentialsForDomains = EnterpriseUtil.getConfigItem(
"allowNtlmCredentialsForDomains",
[]
);
for (const domain of allowNtlmCredentialsForDomains) {
ses.allowNTLMCredentialsForDomains(domain);
}

function configureSpellChecker() {
Expand Down

0 comments on commit 5ef2140

Please sign in to comment.