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

Commit 678a6c5

Browse files
authored
Merge pull request #1268 from matrix-org/t3chguy/devtools
add /devtools command
2 parents b93f174 + 1ad4a81 commit 678a6c5

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
@@ -345,6 +345,13 @@ const commands = {
345345
return reject(this.getUsage());
346346
}),
347347

348+
// Open developer tools
349+
devtools: new Command("devtools", "", function(roomId) {
350+
const DevtoolsDialog = sdk.getComponent("dialogs.DevtoolsDialog");
351+
Modal.createDialog(DevtoolsDialog, { roomId });
352+
return success();
353+
}),
354+
348355
// Verify a user, device, and pubkey tuple
349356
verify: new Command("verify", "<userId> <deviceId> <deviceSigningKey>", function(roomId, args) {
350357
if (args) {

0 commit comments

Comments
 (0)