Мелкий рефакторинг

This commit is contained in:
Book Pauk
2019-03-18 18:48:16 +07:00
parent d6e326e8be
commit 0800385b96

View File

@@ -238,7 +238,7 @@ class BookManager {
await this.init();
const result = this.metaOnly(value);
if (!noTouch)
Object.assign(result, {touchTime: Date.now()});
result.touchTime = Date.now();
if (result.textLength && !result.bookPos && result.bookPosPercent)
result.bookPos = Math.round(result.bookPosPercent*result.textLength);
@@ -332,7 +332,6 @@ class BookManager {
return result;
}
}
export default new BookManager();