From d9e15151fb7ba901614ed846f2a7be87b01bccae Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 14 Jul 2016 09:25:59 -0700 Subject: [PATCH] Use getCurrentWebContents() --- spec/api-web-contents-spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/api-web-contents-spec.js b/spec/api-web-contents-spec.js index 6f99a753c85..4c7f97955be 100644 --- a/spec/api-web-contents-spec.js +++ b/spec/api-web-contents-spec.js @@ -4,7 +4,7 @@ const assert = require('assert') const path = require('path') const {remote} = require('electron') -const {BrowserWindow, webContents, getCurrentWindow} = remote +const {BrowserWindow, webContents} = remote var isCi = remote.getGlobal('isCi') @@ -57,7 +57,7 @@ describe('webContents module', function () { } it('returns the focused web contents', function (done) { - var specWebContents = getCurrentWindow().webContents + var specWebContents = remote.getCurrentWebContents() assert.equal(specWebContents.getId(), webContents.getFocusedWebContents().getId()) specWebContents.on('devtools-opened', function () {