2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2017 Signal Messenger, LLC
|
2022-06-13 21:39:35 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
/* eslint-disable global-require */
|
|
|
|
|
|
|
|
import * as log from '../../logging/log';
|
|
|
|
|
|
|
|
window.preloadStartTime = Date.now();
|
|
|
|
|
|
|
|
try {
|
|
|
|
require('./start');
|
|
|
|
} catch (error) {
|
|
|
|
/* eslint-disable no-console */
|
|
|
|
if (console._log) {
|
|
|
|
console._log('preload error!', error.stack);
|
|
|
|
}
|
|
|
|
console.log('preload error!', error.stack);
|
|
|
|
/* eslint-enable no-console */
|
|
|
|
|
|
|
|
throw error;
|
|
|
|
}
|
|
|
|
|
|
|
|
window.preloadEndTime = Date.now();
|
|
|
|
log.info('preload complete');
|