SEARCH-444

- Implemented a function to delete the index folder
This commit is contained in:
Keerthi Niranjan
2017-11-24 15:58:01 +05:30
parent 384b114670
commit 222e52cbdf
4 changed files with 12 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ const protocolHandler = require('./protocolHandler');
const getCmdLineArg = require('./utils/getCmdLineArg.js');
const log = require('./log.js');
const logLevels = require('./enums/logLevels.js');
const { clearIndexFolder } = require('./search/search');
const { deleteIndexFolder } = require('./search/search.js');
require('electron-dl')();
@@ -131,7 +131,7 @@ app.on('activate', function() {
app.on('will-quit', function (e) {
e.preventDefault();
clearIndexFolder();
deleteIndexFolder();
app.exit();
});