Удалил более не нужный restoreOldSettings

This commit is contained in:
Book Pauk
2019-03-18 18:52:50 +07:00
parent 0800385b96
commit 20697ad9e4
3 changed files with 3 additions and 80 deletions

View File

@@ -237,11 +237,7 @@ class BookManager {
if (!this.recent)
await this.init();
const result = this.metaOnly(value);
if (!noTouch)
result.touchTime = Date.now();
if (result.textLength && !result.bookPos && result.bookPosPercent)
result.bookPos = Math.round(result.bookPosPercent*result.textLength);
result.touchTime = Date.now();
this.recent[result.key] = result;