From 8221db795abd677f248193ff197a3dacf2853806 Mon Sep 17 00:00:00 2001 From: Moritz Hedtke <13287984+mohe2015@users.noreply.github.com> Date: Mon, 27 Apr 2020 22:39:09 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3638ca49..5ba62dcf 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,8 @@ the API docs. ### Example: Using and combining providers -The most common way to combine providers is probably to combine some network provider with the local indexeddb provider: +The most common way to combine providers is probably +to combine some network provider with the local indexeddb provider: ```js import * as Y from 'yjs' @@ -153,7 +154,8 @@ async function main() { let idbP = new IndexeddbPersistence('count-demo', ydoc) await idbP.whenSynced - // this will sync between clients in the background, may be replaced by any network provider + // this will sync between clients in the background, + // may be replaced by any network provider let webP = new WebrtcProvider('count-demo', ydoc) webP.connect()