fix: image check on apple webkit only

This commit is contained in:
Niklas von Hertzen 2021-07-13 20:20:25 +08:00
parent 8546f1eaa2
commit b1e30c8065

View File

@ -97,7 +97,9 @@ export class DocumentCloner {
await documentClone.fonts.ready;
}
await imagesReady(documentClone);
if (/(AppleWebKit)/g.test(navigator.userAgent)) {
await imagesReady(documentClone);
}
if (typeof onclone === 'function') {
return Promise.resolve()