mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
Add comment about disablePopups setting
This commit is contained in:
@@ -225,6 +225,7 @@ const attachGuest = function (event, elementInstanceId, guestInstanceId, params)
|
||||
webPreferences.preloadURL = params.preload
|
||||
}
|
||||
|
||||
// Return null from native window.open if allowpopups is unset
|
||||
if (webPreferences.nativeWindowOpen === true && !params.allowpopups) {
|
||||
webPreferences.disablePopups = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user