1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-02-24 09:33:19 +01:00

hashresolve

This commit is contained in:
Pomax 2016-09-14 15:03:45 -07:00
parent 4eaceef20f
commit 1ca0b4d064
2 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,12 @@ var SectionHeader = React.createClass({
<a href={'#' + this.props.name}>{this.props.title}</a>
</h2>
);
},
componentDidMount() {
var h = window.location.hash;
if (h) {
window.location = window.location.hash;
}
}
});