mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-21 23:29:11 +01:00
27 lines
768 B
TypeScript
27 lines
768 B
TypeScript
// Copyright 2017 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
const { config } = window.SignalContext;
|
|
|
|
export {};
|
|
|
|
if (config.environment === 'test') {
|
|
// oxlint-disable-next-line no-console
|
|
console.log('Importing test infrastructure...');
|
|
// oxlint-disable-next-line node/global-require
|
|
require('./preload_test.preload.ts');
|
|
}
|
|
|
|
if (config.ciMode) {
|
|
// oxlint-disable-next-line no-console
|
|
console.log(
|
|
`Importing CI infrastructure; enabled in config, mode: ${config.ciMode}`
|
|
);
|
|
// oxlint-disable-next-line node/global-require, typescript/no-var-requires
|
|
const { getCI } = require('../../CI.preload.js');
|
|
window.SignalCI = getCI({
|
|
deviceName: window.getTitle(),
|
|
forceUnprocessed: config.ciForceUnprocessed,
|
|
});
|
|
}
|