Skip to content

Commit 5ef2140

Browse files
committed
prettier fix
1 parent 8aa4e67 commit 5ef2140

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

app/common/config-schemata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ export const configSchemata = {
4141
export const enterpriseConfigSchemata = {
4242
...configSchemata,
4343
presetOrganizations: z.string().array(),
44-
allowNTLMCredentialsForDomains: z.string().array(),
44+
allowNtlmCredentialsForDomains: z.string().array(),
4545
};

app/main/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ import * as remoteMain from "@electron/remote/main";
1818
import windowStateKeeper from "electron-window-state";
1919

2020
import * as ConfigUtil from "../common/config-util.js";
21+
import * as EnterpriseUtil from "../common/enterprise-util.js";
2122
import {bundlePath, bundleUrl, publicPath} from "../common/paths.js";
2223
import * as t from "../common/translation-util.js";
2324
import type {RendererMessage} from "../common/typed-ipc.js";
2425
import type {MenuProperties} from "../common/types.js";
2526

26-
import * as EnterpriseUtil from "../common/enterprise-util.js";
27-
2827
import {appUpdater, shouldQuitForUpdate} from "./autoupdater.js";
2928
import * as BadgeSettings from "./badge-settings.js";
3029
import handleExternalLink from "./handle-external-link.js";
@@ -209,9 +208,12 @@ function createMainWindow(): BrowserWindow {
209208
const ses = session.fromPartition("persist:webviewsession");
210209
ses.setUserAgent(`ZulipElectron/${app.getVersion()} ${ses.getUserAgent()}`);
211210

212-
const allowNTLMCredentialsForDomains = EnterpriseUtil.getConfigItem("allowNTLMCredentialsForDomains", []);
213-
for (const url of allowNTLMCredentialsForDomains) {
214-
ses.allowNTLMCredentialsForDomains(url)
211+
const allowNtlmCredentialsForDomains = EnterpriseUtil.getConfigItem(
212+
"allowNtlmCredentialsForDomains",
213+
[]
214+
);
215+
for (const domain of allowNtlmCredentialsForDomains) {
216+
ses.allowNTLMCredentialsForDomains(domain);
215217
}
216218

217219
function configureSpellChecker() {

0 commit comments

Comments
 (0)