From f9df1b6af445032e99e552330b6ea10ef338a76d Mon Sep 17 00:00:00 2001 From: Logan Allen Date: Fri, 15 Nov 2019 11:07:40 -0800 Subject: [PATCH] chat: style fixes --- pkg/arvo/app/chat-hook.hoon | 2 +- .../chat/src/js/components/lib/chat-input.js | 32 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pkg/arvo/app/chat-hook.hoon b/pkg/arvo/app/chat-hook.hoon index f40966d3d..4f097ddf0 100644 --- a/pkg/arvo/app/chat-hook.hoon +++ b/pkg/arvo/app/chat-hook.hoon @@ -88,7 +88,7 @@ ++ create-allow-history |= synced=(map path ship) ^- (map path ?) - (~(run by synced) |=(shp=ship %.n)) + (~(run by synced) |=(* %.n)) -- :: ++ poke-json diff --git a/pkg/interface/chat/src/js/components/lib/chat-input.js b/pkg/interface/chat/src/js/components/lib/chat-input.js index aea869601..cea21ae5e 100644 --- a/pkg/interface/chat/src/js/components/lib/chat-input.js +++ b/pkg/interface/chat/src/js/components/lib/chat-input.js @@ -25,22 +25,22 @@ export class ChatInput extends Component { this.messageChange = this.messageChange.bind(this); // perf testing: - //let closure = () => { - // let x = 0; - // for (var i = 0; i < 30; i++) { - // x++; - // props.api.chat.message( - // props.station, - // `~${window.ship}`, - // Date.now(), - // { - // text: `${x}` - // } - // ); - // } - // setTimeout(closure, 1000); - //}; - //this.closure = closure.bind(this); + /*let closure = () => { + let x = 0; + for (var i = 0; i < 30; i++) { + x++; + props.api.chat.message( + props.station, + `~${window.ship}`, + Date.now(), + { + text: `${x}` + } + ); + } + setTimeout(closure, 1000); + }; + this.closure = closure.bind(this);*/ moment.updateLocale('en', { relativeTime : {