summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-07-14 15:57:06 -0400
committerCorey Hulen <corey@hulen.com>2016-07-14 11:57:06 -0800
commit34077a407b1aeab2d1510471d59a50108f0ec699 (patch)
treecefdcd423861af2566d752b46cb80d394312982c /webapp
parent0b200cc9245193aa01b00ecc8bf41483f6b32e7e (diff)
downloadchat-34077a407b1aeab2d1510471d59a50108f0ec699.tar.gz
chat-34077a407b1aeab2d1510471d59a50108f0ec699.tar.bz2
chat-34077a407b1aeab2d1510471d59a50108f0ec699.zip
made /shortcuts separate for mac (#3571)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/actions/channel_actions.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx
index c02568043..a590f9a9b 100644
--- a/webapp/actions/channel_actions.jsx
+++ b/webapp/actions/channel_actions.jsx
@@ -28,6 +28,14 @@ export function executeCommand(channelId, message, suggest, success, error) {
msg = msg.substring(0, msg.indexOf(' ')).toLowerCase() + msg.substring(msg.indexOf(' '), msg.length);
+ if (message.indexOf('/shortcuts') !== -1 && Utils.isMac()) {
+ msg += ' mac';
+ }
+
+ if (!Utils.isMac() && message.indexOf('/shortcuts') !== -1 && message.indexOf('mac') !== -1) {
+ msg = '/shortcuts';
+ }
+
Client.executeCommand(channelId, msg, suggest, success, error);
}