mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Fix commands
This commit is contained in:
parent
28539e6923
commit
edea0a6d54
@ -115,10 +115,13 @@ export class RoomWidgetChatInputHandler extends RoomWidgetHandler
|
|||||||
return null;
|
return null;
|
||||||
case ':screenshot':
|
case ':screenshot':
|
||||||
const texture = GetRoomEngine().createTextureFromRoom(this.container.roomSession.roomId, 1);
|
const texture = GetRoomEngine().createTextureFromRoom(this.container.roomSession.roomId, 1);
|
||||||
|
|
||||||
|
const image = new Image();
|
||||||
|
|
||||||
|
image.src = TextureUtils.generateImageUrl(texture);
|
||||||
|
|
||||||
const newWindow = window.open('');
|
const newWindow = window.open('');
|
||||||
|
newWindow.document.write(image.outerHTML);
|
||||||
newWindow.document.write(TextureUtils.generateImageUrl(texture));
|
|
||||||
return null;
|
return null;
|
||||||
case ':pickall':
|
case ':pickall':
|
||||||
// this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>
|
// this.container.notificationService.alertWithConfirm('${room.confirm.pick_all}', '${generic.alert.title}', () =>
|
||||||
|
Loading…
Reference in New Issue
Block a user