mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 18:05:29 +02:00
wip
This commit is contained in:
@@ -255,11 +255,11 @@ export class RoomController {
|
||||
}
|
||||
}
|
||||
|
||||
public addObject(type: string) {
|
||||
public addObject(type: string, options: any) {
|
||||
if (this.worker != null) {
|
||||
this.worker.postMessage({ type: 'addObject', objectType: type });
|
||||
this.worker.postMessage({ type: 'addObject', objectType: type, objectOptions: options });
|
||||
} else if (this.engine != null) {
|
||||
this.engine.addObject(type);
|
||||
this.engine.addObject(type, options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user