Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 79b83e6

Browse files
committed
add /devtools command
1 parent 8fd0ced commit 79b83e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SlashCommands.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,13 @@ const commands = {
292292
return reject(this.getUsage());
293293
}),
294294

295+
// Open developer tools
296+
devtools: new Command("devtools", "", function(roomId) {
297+
const DevtoolsDialog = sdk.getComponent("dialogs.DevtoolsDialog");
298+
Modal.createDialog(DevtoolsDialog, { roomId });
299+
return success();
300+
}),
301+
295302
// Verify a user, device, and pubkey tuple
296303
verify: new Command("verify", "<userId> <deviceId> <deviceSigningKey>", function(roomId, args) {
297304
if (args) {

0 commit comments

Comments
 (0)