mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 14:52:36 -05:00
Fix adding blank lines to chat
This commit is contained in:
committed by
Cathy J. Fitzpatrick
parent
c00dcc8e23
commit
a733d3565d
@@ -590,7 +590,7 @@
|
||||
},
|
||||
addRow: function(line) {
|
||||
var name, name2, room, action, silent, oldid;
|
||||
if (typeof line === 'string') {
|
||||
if (line && typeof line === 'string') {
|
||||
if (line.substr(0,1) !== '|') line = '||'+line;
|
||||
var row = line.substr(1).split('|');
|
||||
switch (row[0]) {
|
||||
|
||||
Reference in New Issue
Block a user