Skip to content

Commit 4eb0e4c

Browse files
committed
Make it work outside of example aswell...
1 parent 581554a commit 4eb0e4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function (options) {
88
var defaults = options || {};
99

1010
if(defaults.ZXingLocation == null) {
11-
defaults.ZXingLocation = path.join("..", "zxing");
11+
defaults.ZXingLocation = path.join(__dirname, "..", "zxing");
1212
}
1313

1414
if(defaults.ZXingVersion == null) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"description": "ZXing Wrapper",
11-
"version": "0.1.1",
11+
"version": "0.1.2",
1212
"homepage": "https://github.com/komola/node-zxing",
1313
"repository": {
1414
"type": "git",

0 commit comments

Comments
 (0)