SEARCH-444

- Created an api to clear the user index data folder
This commit is contained in:
Keerthi Niranjan
2017-11-21 22:14:27 +05:30
parent f2f1eb2cd6
commit 9e6a7df281
4 changed files with 36 additions and 30 deletions

View File

@@ -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();
});