diff options
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/serve.js b/lib/serve.js index 8f7d1de..7e2fe3b 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2939,10 +2939,6 @@ Serve.prototype.wrapMyChannels = function (opts) { }) } -function rows(str) { - return String(str).split(/[^\n]{150}|\n/).length -} - Serve.prototype.composer = function (opts, cb) { var self = this opts = opts || {} @@ -3063,7 +3059,7 @@ Serve.prototype.composer = function (opts, cb) { h('textarea', { id: opts.id, name: 'text', - rows: Math.max(4, rows(data.text)), + rows: Math.max(4, u.rows(data.text)), cols: 70, placeholder: opts.placeholder || 'public message', }, data.text || ''), |