V0.6

Add a counter demo firefox example.
sgtm

On Tue, Oct 21, 2014 at 10:11 PM, Will <notifications@github.com> wrote:

> In demo/counter/lib/main.js:
>
> > +
> > +var panel = panels.Panel({
> > +  contentURL: self.data.url('panel.html'),
> > +  contentScriptFile: self.data.url('panel.js'),
> > +  onHide: handleHide
> > +});
> > +
> > +panel.port.on("click", function() {
> > +  counter.click(1);
> > +});
> > +
> > +var counter;
> > +
> > +function handleClick(state) {
> > +  if (!counter) {
> > +    freedom(self.data.url('counter.json'), {portType: 'backgroundFrame'}).then(function (constructor) {
>
> For now this should probably revert back to normal web-worker. I'll add a
> second example that shows how to use debug mode.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/freedomjs/freedom-for-firefox/pull/17/files#r19191456>
> .
>