mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-11-21 15:03:48 -05:00
Minor formatting changes from prettier 2.0
This commit is contained in:
parent
a08e57afad
commit
a50d53203c
@ -3,5 +3,5 @@ import Vue from 'vue';
|
||||
import App from './App';
|
||||
|
||||
let app = new Vue({
|
||||
render: h => h(App),
|
||||
render: (h) => h(App),
|
||||
}).$mount('#app');
|
||||
|
@ -48,7 +48,7 @@ app.ws('/ws', function(ws, req) {
|
||||
|
||||
app.get('/webcam/:printer', (req, res) => {
|
||||
let printer: PrinterStatus | undefined = printerStatuses.find(
|
||||
p => p.name === req.params.printer
|
||||
(p) => p.name === req.params.printer
|
||||
);
|
||||
if (printer?.webcamURL) {
|
||||
req.url = ''; // truncate the url for passing to the proxy
|
||||
@ -153,7 +153,7 @@ class PrinterStatus {
|
||||
|
||||
function initPrinters() {
|
||||
printerStatuses = config.printers.map(
|
||||
printer => new PrinterStatus(printer.address, printer.apikey)
|
||||
(printer) => new PrinterStatus(printer.address, printer.apikey)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user