Browse Source

chore: fix 'browserView' typo (#16621)

Charles Kerr 6 years ago
parent
commit
76dcbcd6ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/browser/api/web-contents.js

+ 1 - 1
lib/browser/api/web-contents.js

@@ -451,7 +451,7 @@ WebContents.prototype._init = function () {
   })
 
   // Handle window.open for BrowserWindow and BrowserView.
-  if (['browserview', 'window'].includes(this.getType())) {
+  if (['browserView', 'window'].includes(this.getType())) {
     // Make new windows requested by links behave like "window.open".
     this.on('-new-window', (event, url, frameName, disposition,
       additionalFeatures, postData,