Skip to content

Commit

Permalink
swapped all var's for let's
Browse files Browse the repository at this point in the history
  • Loading branch information
arrudagates committed Sep 24, 2020
1 parent 23cfbb9 commit 9666723
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions neoplayer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var blessed = require('neo-blessed')
const blessed = require('neo-blessed')
const yts = require('yt-search')
const mpvAPI = require('node-mpv');
const client = require('discord-rich-presence')('704314970522910730');
Expand All @@ -22,21 +22,21 @@ catch (error) {
}
}

var screen = blessed.screen({
let screen = blessed.screen({
smartCSR: true,
dockBorders: true,
//autoPadding: true
});

var form = blessed.form({
let form = blessed.form({
parent: screen,
width: '100%',
left: 'center',
keys: true,
focused: true
});

var input = blessed.textbox({
let input = blessed.textbox({
parent: form,
left: 0,
bottom: 0,
Expand All @@ -49,7 +49,7 @@ var input = blessed.textbox({
focused: true
});

var list = blessed.list({
let list = blessed.list({
parent: screen,
interactive: false,
top: 'center',
Expand Down Expand Up @@ -81,7 +81,7 @@ var list = blessed.list({

screen.on('resize', function(){list.height = screen.height - 7})

var top = blessed.text({
let top = blessed.text({
parent: screen,
top: 0,
height: 3,//'15%',
Expand All @@ -91,7 +91,7 @@ var top = blessed.text({
content: 'Nothing'
});

// var bar = blessed.progressbar({
// let bar = blessed.progressbar({
// parent: screen,
// top: 3,
// height: 2,//'15%',
Expand Down Expand Up @@ -140,7 +140,7 @@ mpv.on("started", async () => {
}
catch{}

// var timer = setInterval(async function () {
// let timer = setInterval(async function () {
// progress = await mpv.getPercentPosition()
// await bar.setProgress(progress)
// await screen.render()
Expand Down

0 comments on commit 9666723

Please sign in to comment.