Remove unnecessary windows 7 shim

This commit is contained in:
Fedor Indutny 2022-11-14 17:07:38 -08:00 committed by GitHub
parent e6ebfe4fca
commit 4e624c7286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 0 additions and 44 deletions

View file

@ -1,9 +1,6 @@
// Copyright 2017-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because it patches "os" module
import '../ts/util/patchWindows7Hostname';
import { join, normalize } from 'path';
import { pathToFileURL } from 'url';
import * as os from 'os';

View file

@ -1,9 +1,6 @@
// Copyright 2019-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../ts/windows/shims';
import './window/phase1-dependencies';
import './window/phase2-signal';
import './window/phase3-sticker-functions';

View file

@ -1,13 +0,0 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import semver from 'semver';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const os = require('os');
// os.hostname() doesn't work on Windows 7 anymore
// See: https://github.com/electron/electron/issues/34404
if (process.platform === 'win32' && semver.satisfies(os.release(), '6.1.x')) {
os.hostname = () => 'Desktop';
}

View file

@ -1,9 +1,6 @@
// Copyright 2018-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import React from 'react';
import ReactDOM from 'react-dom';
import { contextBridge } from 'electron';

View file

@ -1,9 +1,6 @@
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import React from 'react';
import ReactDOM from 'react-dom';
import { contextBridge, ipcRenderer } from 'electron';

View file

@ -1,9 +1,6 @@
// Copyright 2020-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import { contextBridge } from 'electron';
import { SignalContext } from '../context';

View file

@ -1,9 +1,6 @@
// Copyright 2017-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
/* eslint-disable global-require */
import * as log from '../../logging/log';

View file

@ -1,9 +1,6 @@
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import React from 'react';
import ReactDOM from 'react-dom';
import { contextBridge } from 'electron';

View file

@ -1,9 +1,6 @@
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import React from 'react';
import ReactDOM from 'react-dom';
import { contextBridge, ipcRenderer } from 'electron';

View file

@ -1,9 +1,6 @@
// Copyright 2021-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// This has to be the first import because of monkey-patching
import '../shims';
import React from 'react';
import ReactDOM from 'react-dom';
import { contextBridge, ipcRenderer } from 'electron';

View file

@ -1,4 +0,0 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import '../util/patchWindows7Hostname';