Firefox google demo

lets do the campfire brainstorm on this. :)


On Wed, Jun 18, 2014 at 12:54 PM, dborkan <notifications@github.com> wrote:

> In firefox-google-demo/lib/display.js:
>
> > +  log.appendChild(elt);
> > +  var br = document.createElement('br');
> > +  log.appendChild(br);
> > +  br.scrollIntoView();
> > +}
> > +var input = document.getElementById('msg-input');
> > +input.onkeydown = function(evt) {
> > +  if (evt.keyCode == 13) {
> > +    var text = input.value;
> > +    input.value = "";
> > +    appendLog(document.createTextNode("You: " + text + " To " + activeId));
> > +    self.port.emit('send-message', {to: activeId, message: text});
> > +  }
> > +};
> > +
> > +self.port.on("recv-buddylist", function(val){
>
> Something like that - I'm not sure what exactly is the right solution, but
> having a few small bits of "firefox glue" (even if its a little hacky)
> would be a good thing if it allowed us to re-use more code across browsers.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/freedomjs/freedom-social-xmpp/pull/50/files#r13936493>
> .
>



-- 
Lucas Dixon | Google Ideas