refactor: don't expose NavigationController as an internal module (#15920)

This commit is contained in:
Milan Burda 2018-12-03 17:13:09 +01:00 committed by Alexey Kuzmin
parent 559fd5cb31
commit a33eeda4f7
4 changed files with 4 additions and 5 deletions

View file

@ -30,9 +30,7 @@ module.exports = [
{ name: 'Tray', file: 'tray' },
{ name: 'View', file: 'view' },
{ name: 'webContents', file: 'web-contents' },
{ name: 'WebContentsView', file: 'web-contents-view' },
// The internal modules, invisible unless you know their names.
{ name: 'NavigationController', file: 'navigation-controller', private: true }
{ name: 'WebContentsView', file: 'web-contents-view' }
]
if (features.isViewApiEnabled()) {

View file

@ -5,8 +5,9 @@ const { EventEmitter } = require('events')
const electron = require('electron')
const path = require('path')
const url = require('url')
const { app, ipcMain, session, NavigationController, deprecate } = electron
const { app, ipcMain, session, deprecate } = electron
const NavigationController = require('@electron/internal/browser/navigation-controller')
const ipcMainInternal = require('@electron/internal/browser/ipc-main-internal')
const errorUtils = require('@electron/internal/common/error-utils')