Browse Source

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

Co-authored-by: Milan Burda <[email protected]>
trop[bot] 2 years ago
parent
commit
952e2905b9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/browser/api/web-contents.ts

+ 2 - 2
lib/browser/api/web-contents.ts

@@ -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) {
@@ -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) {