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:
parent
84f4e6ac64
commit
05ea4a4ff8
2 changed files with 7 additions and 5 deletions
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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue