At the moment my load method loads a new url which would be the same. I
could change it, but even so, pusher is outside the scope(it needs to be)
so it can't access that method.


On Mon, Mar 17, 2014 at 10:14 AM, Caleb Woods <notifications@github.com>wrote:

> In app/assets/javascripts/IdoubtIt/GameView.js.erb:
>
> > @@ -1,3 +1,12 @@
> > +
> > +var pusher = new Pusher('c5a68e12c11e711af325');
> > +var id = document.URL.split('/')[4];
> > +console.log(id);
> > +var channel = pusher.subscribe(id);
> > +channel.bind('reload_page', function(data) {
> > +  location.reload();
>
> Would it make sense to just call the load game function here rather than
> doing a full browser reload?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/Jeremy-Walton/GoodCleanGames/pull/8/files#r10657195>
> .
>



-- 
 Jeremy