Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_start() {
this.rendition = this.book.renderTo('stage', {
flow: this.props.flow || 'paginated',
minSpreadWidth: 550,
width: '100%',
height: '100%',
manager: ePub.ViewManagers.default,
view: ePub.Views.iframe
});
this.rendition.themes.register(`${getStreamHost()}/static/epub.css`);
this.rendition.themes.apply('book-theme');
this.rendition.display(this._visibleLocation);
this.rendition.on('locationChanged', (visibleLocation) => {
this._visibleLocation = visibleLocation.start;
if (this.props.onLocationChange) {
this.props.onLocationChange(visibleLocation);
}
});
this.book.loaded.navigation.then((nav) => {