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 Mar 2, 2020
1 parent 8404f5c commit 3792bcd
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 @@ -775,9 +775,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 3792bcd

Please sign in to comment.