Remove unnecessary windows 7 shim
This commit is contained in:
parent
e6ebfe4fca
commit
4e624c7286
11 changed files with 0 additions and 44 deletions
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
}
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import '../util/patchWindows7Hostname';
|
Loading…
Add table
Reference in a new issue