« get me outta code hell

basic command log implementation - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/backend.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2020-07-15 21:20:39 -0300
committerFlorrie <towerofnix@gmail.com>2020-07-15 21:20:39 -0300
commita2437eafb1a2d7f39c7e816a693ec4f03654b636 (patch)
tree415b9efbf821bf88970caf1a83849d88aae80ef3 /backend.js
parent1230a2cfac4b0d907631eddb4d0dc798f5bb3564 (diff)
basic command log implementation
Diffstat (limited to 'backend.js')
-rw-r--r--backend.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.js b/backend.js
index 20aec7d..67c6335 100644
--- a/backend.js
+++ b/backend.js
@@ -815,6 +815,10 @@ class Backend extends EventEmitter {
   async download(item) {
     return download(item, this.getRecordFor(item))
   }
+
+  showLogMessage(text) {
+    this.emit('log message', text)
+  }
 }
 
 module.exports = Backend