From 2791f71c03f4427c5726753b9180885653d1d272 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 15 Jul 2016 10:59:19 +0900 Subject: [PATCH] webContents is now a public module --- lib/browser/api/exports/electron.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/browser/api/exports/electron.js b/lib/browser/api/exports/electron.js index 9d873663029c..c47c04690659 100644 --- a/lib/browser/api/exports/electron.js +++ b/lib/browser/api/exports/electron.js @@ -101,16 +101,17 @@ Object.defineProperties(exports, { return require('../tray') } }, + webContents: { + enumerable: true, + get: function () { + return require('../web-contents') + } + }, // The internal modules, invisible unless you know their names. NavigationController: { get: function () { return require('../navigation-controller') } - }, - webContents: { - get: function () { - return require('../web-contents') - } } })