app/js/main/bw/wordlistinput.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 26
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 16
mnd 0
bc 0
fnc 1
dl 0
loc 26
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
1
// jshint esversion: 8
2
3
const electron = require('electron'),
4
  debug = require('debug')('main.bw.wordlistinput');
5
6
const {
7
  app,
8
  BrowserWindow,
9
  Menu,
10
  ipcMain,
11
  dialog,
12
  remote
13
} = electron;
14
15
/*
16
  ipcMain.on('bw:input.wordlist', function(...) {...});
17
    On event: Bulk domain, wordlist input
18
  parameters
19
    event (object) - renderer object
20
 */
21
ipcMain.on('bw:input.wordlist', function(event) {
22
  var {
23
    sender
24
  } = event;
25
26
  debug("Using wordlist input");
27
  sender.send('bw:wordlistinput.confirmation');
28
});
29