export AbstractPersistence

This commit is contained in:
Kevin Jahns
2018-01-08 17:30:30 +01:00
parent 5a68b9f4ad
commit 07cf0b3436
4 changed files with 15 additions and 19 deletions

View File

@@ -4,14 +4,14 @@ window.onload = function () {
window.yXmlType.bindToDom(document.body)
}
let persistence = new Y.IndexedDBPersistence()
let persistence = null // new Y.IndexedDBPersistence()
// initialize a shared object. This function call returns a promise!
let y = new Y({
connector: {
name: 'websockets-client',
url: 'http://127.0.0.1:1234',
room: 'html-editor-example6'
room: 'x'
// maxBufferLength: 100
}
}, persistence)