improve collab demo
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user