chore: let result: ReturnType<typeof this._callWindowOpenHandler>; (#34628)

This commit is contained in:
Milan Burda
2022-06-21 03:39:41 +02:00
committed by GitHub
parent 2bbbc66eb8
commit 0f528c1e43

View File

@@ -646,7 +646,7 @@ WebContents.prototype._init = function () {
disposition
};
let result;
let result: ReturnType<typeof this._callWindowOpenHandler>;
try {
result = this._callWindowOpenHandler(event, details);
} catch (err) {
@@ -685,7 +685,7 @@ WebContents.prototype._init = function () {
postBody
};
let result;
let result: ReturnType<typeof this._callWindowOpenHandler>;
try {
result = this._callWindowOpenHandler(event, details);
} catch (err) {