« 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
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 19:06:05 -0300
commitafeda69313e0250d654986ba0203974c56b30670 (patch)
tree74ceab4ffce0f7c722374596ddeb7b6ca45d46d2 /backend.js
parent1be05b974e5ff09fbab1cda89b2f4223cd97bedb (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 3b2343e..fe7014b 100644
--- a/backend.js
+++ b/backend.js
@@ -866,4 +866,8 @@ export default class Backend extends EventEmitter {
   async download(item) {
     return download(item, this.getRecordFor(item))
   }
+
+  showLogMessage(text) {
+    this.emit('log message', text)
+  }
 }