Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed Sep 16, 2020
1 parent 061d1a4 commit 6fd3d15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"production": "webpack --mode production --progress --hide-modules",
"coverage": "open coverage/lcov-report/index.html",
"coveralls": "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"start": "webpack-dev-server --public http://localhost:8080/test/manual --open"
"start": "webpack-dev-server --public http://localhost:8080/test/manual --open",
"standard:fix": "standard --fix"
},
"author": "Rodrigo Vieira <rodrigo@crabbly.com>",
"standard": {
Expand Down
13 changes: 6 additions & 7 deletions src/js/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ export default {
const req = new window.XMLHttpRequest()
req.responseType = 'arraybuffer'

req.addEventListener('error',() =>{
cleanUp(params)
params.onError(req.statusText)
req.addEventListener('error', () => {
cleanUp(params)
params.onError(req.statusText)

// Since we don't have a pdf document available, we will stop the print job
})

// Since we don't have a pdf document available, we will stop the print job
return
});

req.addEventListener('load', () => {
// Check for errors
if ([200, 201].indexOf(req.status) === -1) {
Expand Down

0 comments on commit 6fd3d15

Please sign in to comment.