From edea0a6d5421e2d4c85ae8df6438b5f54a49df13 Mon Sep 17 00:00:00 2001 From: Bill Date: Thu, 5 Aug 2021 13:30:18 -0400 Subject: [PATCH] Fix commands --- src/views/room/handlers/RoomWidgetChatInputHandler.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/room/handlers/RoomWidgetChatInputHandler.ts b/src/views/room/handlers/RoomWidgetChatInputHandler.ts index 1b21ff2d..c0223f21 100644 --- a/src/views/room/handlers/RoomWidgetChatInputHandler.ts +++ b/src/views/room/handlers/RoomWidgetChatInputHandler.ts @@ -115,10 +115,13 @@ export class RoomWidgetChatInputHandler extends RoomWidgetHandler return null; case ':screenshot': const texture = GetRoomEngine().createTextureFromRoom(this.container.roomSession.roomId, 1); + + const image = new Image(); + + image.src = TextureUtils.generateImageUrl(texture); const newWindow = window.open(''); - - newWindow.document.write(TextureUtils.generateImageUrl(texture)); + newWindow.document.write(image.outerHTML); return null; case ':pickall': // this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>