Skip to content

Commit

Permalink
chore: let result: ReturnType<typeof this._callWindowOpenHandler>; (#…
Browse files Browse the repository at this point in the history
…34668)

Co-authored-by: Milan Burda <milan.burda@gmail.com>
  • Loading branch information
trop[bot] and miniak committed Jun 21, 2022
1 parent b91ab0e commit d6b2e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/browser/api/web-contents.ts
Expand Up @@ -668,7 +668,7 @@ WebContents.prototype._init = function () {
disposition
};

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

let result;
let result: ReturnType<typeof this._callWindowOpenHandler>;
try {
result = this._callWindowOpenHandler(event, details);
} catch (err) {
Expand Down

0 comments on commit d6b2e75

Please sign in to comment.