Remove leftover logic checking whether we are behind proxy
This commit is contained in:
parent
4ae563cc95
commit
189a8a0877
3 changed files with 0 additions and 6 deletions
|
@ -70,10 +70,6 @@ function _maybeGrabLinkPreview(
|
|||
if (!messaging) {
|
||||
return;
|
||||
}
|
||||
// If we're behind a user-configured proxy, we don't support link previews
|
||||
if (window.isBehindProxy()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!message) {
|
||||
resetLinkPreview(conversationId);
|
||||
|
|
1
ts/window.d.ts
vendored
1
ts/window.d.ts
vendored
|
@ -183,7 +183,6 @@ declare global {
|
|||
// Used for sticker creator localization
|
||||
localeMessages: { [key: string]: { message: string } };
|
||||
|
||||
isBehindProxy: () => boolean;
|
||||
openArtCreator: (opts: { username: string; password: string }) => void;
|
||||
|
||||
enterKeyboardMode: () => void;
|
||||
|
|
|
@ -58,7 +58,6 @@ window.getServerPublicParams = () => config.serverPublicParams;
|
|||
window.getGenericServerPublicParams = () => config.genericServerPublicParams;
|
||||
window.getBackupServerPublicParams = () => config.backupServerPublicParams;
|
||||
window.getSfuUrl = () => config.sfuUrl;
|
||||
window.isBehindProxy = () => Boolean(config.proxyUrl);
|
||||
|
||||
let title = config.name;
|
||||
if (getEnvironment() !== Environment.Production) {
|
||||
|
|
Loading…
Reference in a new issue