Actually, you're right.
Just yesterday I implemented "level 0" in my dev branch, but it is not
online yet. For the time being, any level with 0 energy works...

Not sure when I will release the 1.0.0 version with the "level 0", though.
Might take another couple of days.
Until then, if you could merge this, the plugin would work again.
I'll send another PR with that when the 1.0.0 is online

Thanks anyway for keeping a close eye on it!!!!!


2013/4/11 Jon Atkins <notifications@github.com>

> In plugins/ipas-link.user.js:
>
> > @@ -33,7 +33,12 @@ window.plugin.ipasLink.addLink = function(d) {
> >  window.plugin.ipasLink.getHash = function(d) {
> >      var hashParts=[];
> >      $.each(d.resonatorArray.resonators, function(ind, reso) {
> > -        hashParts.push(reso.level + "," + reso.distanceToPortal + "," + reso.energyTotal);
> > +        if ($reso) {
> > +            hashParts.push(reso.level + "," + reso.distanceToPortal + "," + reso.energyTotal);
> > +        } else {
> > +            hashParts.push(1 + "," + 35 + "," + 0); // Dummy values, the only important one is energy=0
>
> wouldn't 0 for the resonator level make more sense here? @Xosofox<https://github.com/Xosofox>?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jonatkins/ingress-intel-total-conversion/pull/144/files#r3755514>
> .
>