Skip to content

Commit

Permalink
Simplify attribute check for zoom state
Browse files Browse the repository at this point in the history
  • Loading branch information
versable committed Feb 18, 2019
1 parent 0822798 commit 0eb6b9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,7 @@ sub flow {
var el = target.querySelector("rect");
if (el && el.attributes && el.attributes.y && el.attributes._orig_x) {
var params = get_params()
params.x = el.attributes._orig_x.value ?
el.attributes._orig_x.value :
el.attributes.x.value;
params.x = el.attributes._orig_x.value;
params.y = el.attributes.y.value;
history.replaceState(null, null, parse_params(params));
}
Expand Down

0 comments on commit 0eb6b9f

Please sign in to comment.