提交 63a9242d 编写于 作者: P pi1024e

Reverted refactorings

上级 d03bf0ff
......@@ -82,7 +82,7 @@ export class Dialog extends Disposable {
this.focusToReturn = document.activeElement as HTMLElement;
return new Promise<number>((resolve) => {
if (!(this.element && this.buttonsContainer && this.iconElement && this.toolbarContainer)) {
if (!this.element || !this.buttonsContainer || !this.iconElement || !this.toolbarContainer) {
resolve(0);
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册