chore: clarify new-window fix comment (#31069)

This commit is contained in:
Keeley Hammond 2021-09-22 15:30:55 -07:00 committed by GitHub
parent 38b810b2e3
commit bb6dc99d9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -666,9 +666,9 @@ WebContents.prototype._init = function () {
postBody
};
windowOpenOverriddenOptions = this._callWindowOpenHandler(event, details);
// if attempting to use this API with the deprecated window.open event,
// if attempting to use this API with the deprecated new-window event,
// windowOpenOverriddenOptions will always return null. This ensures
// short-term backwards compatibility until window.open is removed.
// short-term backwards compatibility until new-window is removed.
const parsedFeatures = parseFeatures(rawFeatures);
const overriddenFeatures: BrowserWindowConstructorOptions = {
...parsedFeatures.options,