Skip to content

Commit

Permalink
fix(jshint): make jshint pass
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Jun 29, 2016
1 parent 2288539 commit 2d95c10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
src/browser/adapter.js
src/browser/qrcode-reader.js
6 changes: 4 additions & 2 deletions src/browser/QRScannerProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
video.src = URL.createObjectURL(mediaStream);
success(calcStatus());
}, function(err){
console.error(err);
// something bad happened
err = null;
var code = currentCameraIndex? 4 : 3;
error(code); // FRONT_CAMERA_UNAVAILABLE : BACK_CAMERA_UNAVAILABLE
});
Expand Down Expand Up @@ -344,7 +345,8 @@
error(5); // CAMERA_UNAVAILABLE
}
}, function(err){
console.error(err);
// something bad happened
err = null;
error(0); // UNEXPECTED_ERROR
});
} else if (backCamera === false){
Expand Down
4 changes: 3 additions & 1 deletion src/browser/worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var module = {};
/*global module:true, importScripts:false, postMessage:false, onmessage:true*/

module = {};
importScripts('qrcode-reader.js');
var QrCode = module.exports;
var qr = new QrCode();
Expand Down

0 comments on commit 2d95c10

Please sign in to comment.