mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Improve cold start performance
This commit is contained in:
@@ -76,6 +76,16 @@ function deleteIndexedDB() {
|
||||
/* Delete the database before running any tests */
|
||||
before(async () => {
|
||||
await deleteIndexedDB();
|
||||
try {
|
||||
window.log.info('Initializing SQL in renderer');
|
||||
await window.sqlInitializer.initialize();
|
||||
window.log.info('SQL initialized in renderer');
|
||||
} catch (err) {
|
||||
window.log.error(
|
||||
'SQL failed to initialize',
|
||||
err && err.stack ? err.stack : err
|
||||
);
|
||||
}
|
||||
await window.Signal.Data.removeAll();
|
||||
await window.storage.fetch();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user