mirror of
https://github.com/tomru/switchmon.git
synced 2026-03-03 06:27:23 +01:00
fix tests for switch to callbacks
This commit is contained in:
2
swm.js
2
swm.js
@@ -8,7 +8,7 @@ function executeCmd(cmd, callback) {
|
||||
}
|
||||
|
||||
function getDevices(callback) {
|
||||
executeCmd('xrandr', (err, stdout) => callback(err, xrandrParse(stdout)));
|
||||
executeCmd('xrandr', (err, stdout) => callback(err, err ? null : xrandrParse(stdout)));
|
||||
}
|
||||
|
||||
function switchDevices(xrandrOptions, callback) {
|
||||
|
||||
Reference in New Issue
Block a user