From 8fd1f3405af1f9aa3be1fc0a178b52203e807668 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Thu, 3 Feb 2022 21:25:29 +0100 Subject: [PATCH] lint --- README.md | 7 ++++++- src/utils/UndoManager.js | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fc7a7635..ba87a5e8 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,12 @@ hypercores and y-dat listens to changes and applies them to the Yjs document.
Matrix-CRDT
- Use Matrix as an off-the-shelf backend for Yjs by using the MatrixProvider. Use Matrix as transport and storage of Yjs updates, so you can focus building your client app and Matrix can provide powerful features like Authentication, Authorization, Federation, hosting (self-hosting or SaaS) and even End-to-End Encryption (E2EE). +Use Matrix as an off-the-shelf backend for +Yjs by using the MatrixProvider. +Use Matrix as transport and storage of Yjs updates, so you can focus building +your client app and Matrix can provide powerful features like Authentication, +Authorization, Federation, hosting (self-hosting or SaaS) and even End-to-End +Encryption (E2EE).
diff --git a/src/utils/UndoManager.js b/src/utils/UndoManager.js index ef2ccfa3..bb7b7cb8 100644 --- a/src/utils/UndoManager.js +++ b/src/utils/UndoManager.js @@ -285,19 +285,19 @@ export class UndoManager extends Observable { /** * Are undo steps available? - * + * * @return {boolean} `true` if undo is possible */ - canUndo() { + canUndo () { return this.undoStack.length > 0 } - + /** * Are redo steps available? - * + * * @return {boolean} `true` if redo is possible */ - canRedo() { + canRedo () { return this.redoStack.length > 0 } }