Мелкие поправки

This commit is contained in:
Book Pauk
2022-10-08 01:31:06 +07:00
parent 3009d99510
commit 2d817e9c98
2 changed files with 5 additions and 1 deletions

View File

@@ -395,6 +395,8 @@ class WebWorker {
} }
async restoreBookFile(publicPath) { async restoreBookFile(publicPath) {
this.checkMyState();
try { try {
const db = this.db; const db = this.db;
const hash = path.basename(publicPath); const hash = path.basename(publicPath);
@@ -418,6 +420,8 @@ class WebWorker {
} }
async getDownFileName(publicPath) { async getDownFileName(publicPath) {
this.checkMyState();
const db = this.db; const db = this.db;
const hash = path.basename(publicPath); const hash = path.basename(publicPath);

View File

@@ -23,7 +23,7 @@ function showHelp() {
Options: Options:
--help Print ${config.name} command line options --help Print ${config.name} command line options
--app-dir=<dirpath> Set application working directory, default: "<execDir>/.${config.name}" --app-dir=<dirpath> Set application working directory, default: <execDir>/.${config.name}
--lib-dir=<dirpath> Set library directory, default: the same as ${config.name} executable's --lib-dir=<dirpath> Set library directory, default: the same as ${config.name} executable's
--inpx=<filepath> Set INPX collection file, default: the one that found in library dir --inpx=<filepath> Set INPX collection file, default: the one that found in library dir
--recreate Force recreation of the search database on start --recreate Force recreation of the search database on start