Skip to content
Snippets Groups Projects
Commit a19f784f authored by Diego Sampaio's avatar Diego Sampaio
Browse files

added javascript syntax do code blocks

parent 6f3a5546
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ This package contains the main libraries of Rocket.Chat. ...@@ -8,7 +8,7 @@ This package contains the main libraries of Rocket.Chat.
You can create your own room type using (on the client): You can create your own room type using (on the client):
``` ```javascript
RocketChat.roomTypes.add('l', 5, { RocketChat.roomTypes.add('l', 5, {
template: 'livechat', template: 'livechat',
icon: 'icon-chat-empty', icon: 'icon-chat-empty',
...@@ -29,7 +29,7 @@ RocketChat.roomTypes.add('l', 5, { ...@@ -29,7 +29,7 @@ RocketChat.roomTypes.add('l', 5, {
You'll need publish information about the new room with (on the server): You'll need publish information about the new room with (on the server):
``` ```javascript
RocketChat.roomTypes.setPublish('l', (identifier) => { RocketChat.roomTypes.setPublish('l', (identifier) => {
return RocketChat.models.Rooms.findByTypeAndName('l', identifier, { return RocketChat.models.Rooms.findByTypeAndName('l', identifier, {
fields: { fields: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment