mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-14 23:18:54 +00:00
Don't pass false query value for enableCI
`?enableCI=false` in the main window URL is treated as truthy value so don't pass it at all.
This commit is contained in:
2
main.js
2
main.js
@@ -224,7 +224,7 @@ function prepareURL(pathSegments, moreKeys) {
|
||||
cdnUrl2: config.get('cdn').get('2'),
|
||||
certificateAuthority: config.get('certificateAuthority'),
|
||||
environment: enableCI ? 'production' : config.environment,
|
||||
enableCI,
|
||||
enableCI: enableCI ? true : undefined,
|
||||
node_version: process.versions.node,
|
||||
hostname: os.hostname(),
|
||||
appInstance: process.env.NODE_APP_INSTANCE,
|
||||
|
||||
10
preload.js
10
preload.js
@@ -518,10 +518,12 @@ try {
|
||||
getRegionCode: () => window.storage.get('regionCode'),
|
||||
logger: window.log,
|
||||
});
|
||||
window.CI = config.enableCI && {
|
||||
setProvisioningURL: url => ipc.send('set-provisioning-url', url),
|
||||
deviceName: title,
|
||||
};
|
||||
window.CI = config.enableCI
|
||||
? {
|
||||
setProvisioningURL: url => ipc.send('set-provisioning-url', url),
|
||||
deviceName: title,
|
||||
}
|
||||
: undefined;
|
||||
|
||||
// these need access to window.Signal:
|
||||
require('./ts/models/messages');
|
||||
|
||||
Reference in New Issue
Block a user