Browse Source

fixed typeof bug

master
Igor Zhukov 10 years ago
parent
commit
942421321b
  1. 2
      app/js/message_composer.js

2
app/js/message_composer.js

@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
if (Array.isArray(shortcut)) {
shortcut = shortcut[0];
}
if (shortcut && typeof shortcut !== 'string') {
if (shortcut && typeof shortcut === 'string') {
if (shortcut.charAt(0) == ':') {
shortcut = shortcut.substr(1, shortcut.length - 2);
}

Loading…
Cancel
Save