We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a146aba commit b6cd9c8Copy full SHA for b6cd9c8
app/components/Reader/index.js
@@ -19,6 +19,10 @@ class Reader extends Component {
19
this.setState({ ...this.state, location: item.href });
20
}
21
22
+ handleReady() {
23
+ this.setState({ ...this.state, isLoading: false });
24
+ }
25
+
26
tocToggle() {
27
let navMenu = document.getElementById('toc-nav');
28
@@ -90,7 +94,7 @@ class Reader extends Component {
90
94
src={`${getStreamHost()}/${book.id}/${download}/`}
91
95
onNavigationReady={ this._navigationReady.bind(this) }
92
96
onLocationChanged={(location) => console.log(location)}
93
- onReady={(book) => console.log("ready")}
97
+ onReady={ this.handleReady.bind(this) }
98
location={this.state.location}
99
/>
100
</div>
0 commit comments