1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-02 14:49:16 +02:00

Fixed font loading expand call

This commit is contained in:
Fred Chasen 2015-05-11 15:53:25 -04:00
parent 134b73fc14
commit d733d41519
3 changed files with 3 additions and 3 deletions

2
dist/epub.js vendored
View file

@ -4398,7 +4398,7 @@ EPUBJS.View.prototype.afterLoad = function() {
// Wait for fonts to load to finish
if(this.document.fonts.status === "loading") {
if(this.document.fonts && this.document.fonts.status === "loading") {
this.document.fonts.onloading = function(){
this.expand();
}.bind(this);

2
dist/epub.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -158,7 +158,7 @@ EPUBJS.View.prototype.afterLoad = function() {
// Wait for fonts to load to finish
if(this.document.fonts.status === "loading") {
if(this.document.fonts && this.document.fonts.status === "loading") {
this.document.fonts.onloading = function(){
this.expand();
}.bind(this);