Push dev work to master #2

Merged
sixteenmillimeter merged 416 commits from dev into master 2018-07-19 15:29:02 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 757e3dd86d - Show all commits

View File

@ -36,12 +36,14 @@ class Wifi {
const lines = stdout.split('\n') const lines = stdout.split('\n')
let output = [] let output = []
let line let line
let i = 0
for (let l of lines) { for (let l of lines) {
line = l.replace('ESSID:', '').trim() line = l.replace('ESSID:', '').trim()
if (line !== '""') { if (line !== '""' && i < 5) {
line = line.replace(quoteRe, '') line = line.replace(quoteRe, '')
output.push(line) output.push(line)
} }
i++
} }
output = output.filter(ap => { output = output.filter(ap => {
if (ap !== '') return ap if (ap !== '') return ap