mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-29 16:29:19 +02:00
now?
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
const { EventEmitter } = require('events');
|
||||
const { logWarn, logError } = require('./console');
|
||||
const { storage } = require('./storage');
|
||||
|
||||
let output = null;
|
||||
let wss = null;
|
||||
@@ -30,10 +31,12 @@ function registerServerContext(ctx) {
|
||||
|
||||
function setOutput(newOutput) {
|
||||
output = newOutput;
|
||||
storage.ctl_output = newOutput;
|
||||
}
|
||||
|
||||
function clearOutput() {
|
||||
output = null;
|
||||
storage.ctl_output = null;
|
||||
}
|
||||
|
||||
// ---- accessors plugin side ----
|
||||
|
||||
Reference in New Issue
Block a user