diff --git a/core/Page.js b/core/Page.js index 6a673cd..cfe5093 100644 --- a/core/Page.js +++ b/core/Page.js @@ -414,6 +414,8 @@ export default class Page extends EventEmitter { * @param {Error} err - 错误对象 */ #emitError(err) { + if(err.message.indexOf("Another frame is pending") != -1) + err = new Error("Page rendering has been interrupted"); if (this.eventNames().indexOf("error") != -1) this.emit("error", err); else diff --git a/core/Synthesizer.js b/core/Synthesizer.js index 0189c24..5c2dcc2 100644 --- a/core/Synthesizer.js +++ b/core/Synthesizer.js @@ -319,7 +319,7 @@ export default class Synthesizer extends EventEmitter { if (value > 100) value = 100; this.progress = Math.floor(value * 1000) / 1000; - if (this.showProgress) { + if (this._cliProgress) { if (!this._cliProgress.started) { if (this._cliProgress instanceof cliProgress.MultiBar) this._cliProgress = this._cliProgress.create(this._targetFrameCount, 0);