Skip to content

Commit

Permalink
Update printer-service.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely authored Oct 1, 2023
1 parent e9007a6 commit cf7626a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions printer-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@

const WebSocketClient = require('ws');
const chokidar = require('chokidar');

# const DIR = ".printer-queue";
const home = process.env.HOME;
# const watchdir = home + '/' + DIR;
const watchdir = "/var/spool/cups-pdf/ANONYMOUS";

let watcher = null;

function broadcastevent(method, data) {
Expand Down Expand Up @@ -76,7 +71,7 @@ function printer() {
});

watcher.printerready = false;
watcher.home = home;
watcher.home = watchdir;

// Add event listeners.
watcher.on('ready', printer_ready);
Expand Down

0 comments on commit cf7626a

Please sign in to comment.