mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Use await
consistently in the PartialEvaluator.setGState
method
This commit is contained in:
parent
1cc83c4fdc
commit
cf0797dfbd
1 changed files with 8 additions and 8 deletions
|
@ -1188,7 +1188,8 @@ class PartialEvaluator {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return promise.then(function () {
|
await promise;
|
||||||
|
|
||||||
if (gStateObj.length > 0) {
|
if (gStateObj.length > 0) {
|
||||||
operatorList.addOp(OPS.setGState, [gStateObj]);
|
operatorList.addOp(OPS.setGState, [gStateObj]);
|
||||||
}
|
}
|
||||||
|
@ -1196,7 +1197,6 @@ class PartialEvaluator {
|
||||||
if (isSimpleGState) {
|
if (isSimpleGState) {
|
||||||
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
localGStateCache.set(cacheKey, gStateRef, gStateObj);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadFont(
|
loadFont(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue