Skip to content

Commit

Permalink
Fixed incorrect call to Mojo::DOM->attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
ct committed Aug 7, 2014
1 parent 1b0e0f7 commit be974de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Google/Voice.pm
Expand Up @@ -36,7 +36,7 @@ sub login {
$c->get('https://accounts.google.com/ServiceLogin')
->res->dom->at('input[name="GALX"]');

my $galx = $el->attrs->{value} if $el;
my $galx = $el->attr->{value} if $el;

$c->post(
'https://accounts.google.com/ServiceLogin',
Expand All @@ -54,7 +54,7 @@ sub login {
# Login not accepted
return unless $el;

$self->rnr_se($el->attrs->{value});
$self->rnr_se($el->attr->{value});

return $self;
}
Expand Down

0 comments on commit be974de

Please sign in to comment.