Modernize Benchmarks CI
This commit is contained in:
parent
12c78c742f
commit
61b7eebfcf
17 changed files with 149 additions and 58 deletions
14
preload.js
14
preload.js
|
@ -582,12 +582,12 @@ try {
|
|||
getRegionCode: () => window.storage.get('regionCode'),
|
||||
logger: window.log,
|
||||
});
|
||||
window.CI = config.enableCI
|
||||
? {
|
||||
setProvisioningURL: url => ipc.send('set-provisioning-url', url),
|
||||
deviceName: title,
|
||||
}
|
||||
: undefined;
|
||||
|
||||
if (config.enableCI) {
|
||||
const { CI, electronRequire } = require('./ts/CI');
|
||||
window.CI = new CI(title);
|
||||
window.electronRequire = electronRequire;
|
||||
}
|
||||
|
||||
// these need access to window.Signal:
|
||||
require('./ts/models/messages');
|
||||
|
@ -616,7 +616,7 @@ try {
|
|||
});
|
||||
|
||||
if (config.environment === 'test') {
|
||||
require('./preload_test.js');
|
||||
require('./preload_test');
|
||||
}
|
||||
} catch (error) {
|
||||
/* eslint-disable no-console */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue