Fix commands

This commit is contained in:
Bill 2021-08-05 13:30:18 -04:00
parent 28539e6923
commit edea0a6d54

View File

@ -116,9 +116,12 @@ export class RoomWidgetChatInputHandler extends RoomWidgetHandler
case ':screenshot':
const texture = GetRoomEngine().createTextureFromRoom(this.container.roomSession.roomId, 1);
const newWindow = window.open('');
const image = new Image();
newWindow.document.write(TextureUtils.generateImageUrl(texture));
image.src = TextureUtils.generateImageUrl(texture);
const newWindow = window.open('');
newWindow.document.write(image.outerHTML);
return null;
case ':pickall':
// this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>