mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Fixed font loading expand call
This commit is contained in:
parent
134b73fc14
commit
d733d41519
3 changed files with 3 additions and 3 deletions
2
dist/epub.js
vendored
2
dist/epub.js
vendored
|
@ -4398,7 +4398,7 @@ EPUBJS.View.prototype.afterLoad = function() {
|
||||||
|
|
||||||
|
|
||||||
// Wait for fonts to load to finish
|
// 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.document.fonts.onloading = function(){
|
||||||
this.expand();
|
this.expand();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
2
dist/epub.min.js
vendored
2
dist/epub.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -158,7 +158,7 @@ EPUBJS.View.prototype.afterLoad = function() {
|
||||||
|
|
||||||
|
|
||||||
// Wait for fonts to load to finish
|
// 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.document.fonts.onloading = function(){
|
||||||
this.expand();
|
this.expand();
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue