mirror of
https://github.com/yugasun/qrcode-decoder.git
synced 2026-08-12 20:27:56 +08:00
fix: clear black bg after camera capture
This commit is contained in:
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 3.4 KiB |
Vendored
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "qrcode-decoder",
|
||||
"version": "0.1.0",
|
||||
"version": "0.1.1",
|
||||
"description": "Tool for decoding qrcode",
|
||||
"main": "dist/index.js",
|
||||
"jsnext:main": "dist/index.esm.js",
|
||||
|
||||
@@ -306,6 +306,9 @@ class QrcodeDecoder {
|
||||
const track = this.stream.getTracks()[0];
|
||||
track.stop();
|
||||
this.stream = undefined;
|
||||
|
||||
// fix: clear black bg after camera capture
|
||||
this.videoElem.srcObject = null;
|
||||
}
|
||||
|
||||
if (this.timerCapture) {
|
||||
|
||||
Reference in New Issue
Block a user