Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
Banner,
Description,
FormFieldContainer,
Label,
Expand Down Expand Up @@ -197,6 +198,12 @@ export const ProxySettingsCustom: React.FunctionComponent<
disabled={disabled}
/>
</FormFieldContainer>
{(proxyPassword || proxyUsername) && (
<Banner variant="warning">
Some resources, such as map data for geographic visualizations, cannot
currently be loaded through proxies which require authentication.
</Banner>
)}
</div>
);
};
15 changes: 1 addition & 14 deletions packages/compass/src/main/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import './disable-node-deprecations'; // Separate module so it runs first
import path from 'path';
import { EventEmitter } from 'events';
import type { BrowserWindow, Event, ProxyConfig } from 'electron';
import { dialog } from 'electron';
import { app, safeStorage, session } from 'electron';
import { ipcMain } from 'hadron-ipc';
import type { AutoUpdateManagerState } from './auto-update-manager';
Expand Down Expand Up @@ -323,19 +322,7 @@ class CompassApplication {
error: headline,
}
);

const sep = path.sep;
const configPath = `${app.getPath(
'userData'
)}${sep}AppPreferences${sep}General.json`;

dialog.showErrorBox(
'Unsupported proxy configuration',
`${headline}\n\n
To reset the proxy configuration, remove the "proxy" key in ${configPath} and restart Compass.`
);

app.quit();
await target.setProxy({});
}

const agent = createAgent(proxyOptions);
Expand Down
Loading