diff options
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ui.js b/ui.js index f5880df..69fc7f1 100644 --- a/ui.js +++ b/ui.js @@ -27,11 +27,7 @@ const { telchars: telc, unichars: unic, } -} = require('./tui-lib') - -const fs = require('fs') -const { promisify } = require('util') -const writeFile = promisify(fs.writeFile) +} = require('tui-lib') class AppElement extends FocusElement { constructor() { @@ -733,13 +729,6 @@ class AppElement extends FocusElement { this.queueListingElement.selectAndShow(item) } - await Promise.all([ - writeFile(this.rootDirectory + '/current-track.txt', - getItemPathString(item)), - writeFile(this.rootDirectory + '/current-track.json', - JSON.stringify(item, null, 2)) - ]) - try { await this.player.playFile(downloadFile) } finally { |