enable indexeddb persistence again

This commit is contained in:
kriskbx
2021-04-06 11:01:41 +02:00
parent 130023bca5
commit 66f02c4145

View File

@@ -30,7 +30,7 @@ import TaskItem from '@tiptap/extension-task-item'
import Highlight from '@tiptap/extension-highlight' import Highlight from '@tiptap/extension-highlight'
import * as Y from 'yjs' import * as Y from 'yjs'
import { WebsocketProvider } from 'y-websocket' import { WebsocketProvider } from 'y-websocket'
// import { IndexeddbPersistence } from 'y-indexeddb' import { IndexeddbPersistence } from 'y-indexeddb'
import MenuBar from './MenuBar.vue' import MenuBar from './MenuBar.vue'
const CustomTaskItem = TaskItem.extend({ const CustomTaskItem = TaskItem.extend({
@@ -70,7 +70,7 @@ export default {
window.ydoc = ydoc window.ydoc = ydoc
// this.indexdb = new IndexeddbPersistence('tiptap-collaboration-example', ydoc) this.indexdb = new IndexeddbPersistence('tiptap-collaboration-example', ydoc)
this.editor = new Editor({ this.editor = new Editor({
extensions: [ extensions: [