1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 18:05:29 +02:00
This commit is contained in:
syuilo
2026-04-24 10:16:13 +09:00
parent 1de4440dbd
commit 7c170a21e5
9 changed files with 186 additions and 84 deletions

View File

@@ -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);
}
}