Skip to content

Commit

Permalink
fix: add decode code result type
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Jul 17, 2024
1 parent 9fa4767 commit 8fb5b98
Show file tree
Hide file tree
Showing 8 changed files with 5,963 additions and 4,447 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Rewrite unit test.

- [] Rewrite unit test.
- [x] Rewrite unit test.
2 changes: 1 addition & 1 deletion demo/camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
var vConsole = new VConsole();
console.log('Hello world');
function main() {
var qr = new QrcodeDecoder();
var qr = new QrcodeDecoder.default();
var video = document.querySelector('#video');
var start = document.querySelector('#start');
var stop = document.querySelector('#stop');
Expand Down
2 changes: 1 addition & 1 deletion demo/image.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h3>Different domain image</h3>
<script type="module">
var vConsole = new VConsole();
function main() {
var qr = new QrcodeDecoder();
var qr = new QrcodeDecoder.default();

var btn1 = document.querySelector('button#decode1');
var btn2 = document.querySelector('button#decode2');
Expand Down
2 changes: 1 addition & 1 deletion demo/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
var result = document.querySelector('#result');
var start = document.querySelector('#start');
var stop = document.querySelector('#stop');
var qr = new QrcodeDecoder();
var qr = new QrcodeDecoder.default();

start.onclick = startScan;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"ts-node": "^8.4.1",
"tslint": "^5.20.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.5"
"typescript": "^4.4.3"
},
"license": "MIT",
"repository": {
Expand Down
Loading

0 comments on commit 8fb5b98

Please sign in to comment.