Remove lint warnings
This commit is contained in:
parent
ef2a28ca86
commit
230ed78dd6
1 changed files with 1 additions and 4 deletions
|
@ -2,9 +2,7 @@ const assert = require('assert')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const http = require('http')
|
const http = require('http')
|
||||||
const url = require('url')
|
const url = require('url')
|
||||||
|
const {app, session} = require('electron')
|
||||||
const {remote} = require('electron')
|
|
||||||
const {app} = remote
|
|
||||||
|
|
||||||
describe('<webview> tag', function () {
|
describe('<webview> tag', function () {
|
||||||
this.timeout(10000)
|
this.timeout(10000)
|
||||||
|
@ -704,7 +702,6 @@ describe('<webview> tag', function () {
|
||||||
|
|
||||||
describe('permission-request event', function () {
|
describe('permission-request event', function () {
|
||||||
function setUpRequestHandler (webview, requested_permission) {
|
function setUpRequestHandler (webview, requested_permission) {
|
||||||
const session = require('electron').remote.session
|
|
||||||
var listener = function (webContents, permission, callback) {
|
var listener = function (webContents, permission, callback) {
|
||||||
if (webContents.getId() === webview.getId()) {
|
if (webContents.getId() === webview.getId()) {
|
||||||
assert.equal(permission, requested_permission)
|
assert.equal(permission, requested_permission)
|
||||||
|
|
Loading…
Reference in a new issue