mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-444
- Created an api to clear the user index data folder
This commit is contained in:
@@ -18,8 +18,7 @@ const protocolHandler = require('./protocolHandler');
|
||||
const getCmdLineArg = require('./utils/getCmdLineArg.js');
|
||||
const log = require('./log.js');
|
||||
const logLevels = require('./enums/logLevels.js');
|
||||
const Crypto = require('./cryptoLib');
|
||||
const crypto = new Crypto();
|
||||
const { clearIndexFolder } = require('./search/search');
|
||||
|
||||
require('electron-dl')();
|
||||
|
||||
@@ -132,7 +131,7 @@ app.on('activate', function() {
|
||||
|
||||
app.on('will-quit', function (e) {
|
||||
e.preventDefault();
|
||||
crypto.deleteFolders();
|
||||
clearIndexFolder();
|
||||
app.exit();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user