mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Set _setDeprecatedOptionsCheck on exports
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
const ipcMain = require('electron').ipcMain;
|
||||
const deprecate = require('electron').deprecate;
|
||||
const EventEmitter = require('events').EventEmitter;
|
||||
const BrowserWindow = process.atomBinding('window').BrowserWindow;
|
||||
const {BrowserWindow, _setDeprecatedOptionsCheck} = process.atomBinding('window');
|
||||
|
||||
BrowserWindow.prototype.__proto__ = EventEmitter.prototype;
|
||||
|
||||
@@ -289,6 +289,6 @@ const checkForDeprecatedOptions = function(options) {
|
||||
|
||||
return '';
|
||||
};
|
||||
BrowserWindow._setDeprecatedOptionsCheck(checkForDeprecatedOptions);
|
||||
_setDeprecatedOptionsCheck(checkForDeprecatedOptions);
|
||||
|
||||
module.exports = BrowserWindow;
|
||||
|
||||
Reference in New Issue
Block a user