improve collab demo

This commit is contained in:
Philipp Kühn
2019-02-03 21:18:03 +01:00
parent b23cdcba6b
commit bf21ebd719
2 changed files with 48 additions and 18 deletions

View File

@@ -6,7 +6,19 @@ export default class CollabExtension extends Extension {
return 'collab'
}
get defaultOptions() {
return {
version: 0,
clientID: Math.floor(Math.random() * 0xFFFFFFFF),
}
}
get plugins() {
return [collab()]
return [
collab({
version: this.options.version,
clientID: this.options.clientID,
}),
]
}
}