mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix(font): ios13+ font loading errror
In ios 13+, documents fonts loaded,but documents,fonts.ready not resolve but in pending,so that whole process is pending.
This commit is contained in:
parent
eeda86bd5e
commit
310da17e4c
@ -109,7 +109,7 @@ export class DocumentCloner {
|
||||
return Promise.reject(`Error finding the ${this.referenceElement.nodeName} in the cloned document`);
|
||||
}
|
||||
|
||||
if (documentClone.fonts && documentClone.fonts.ready) {
|
||||
if (documentClone.fonts && documentClone.fonts.status === "loading" && documentClone.fonts.ready) {
|
||||
await documentClone.fonts.ready;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user