vue-barcode-scanner
Advanced tools
Comparing version 0.3.0 to 0.3.1
10
index.js
@@ -85,7 +85,7 @@ const VueBarcodeScanner = { | ||
function checkInputElapsedTime (timestamp) { | ||
pressedTime.push(timestamp) | ||
if (pressedTime.length === 2) { | ||
let timeElapsed = pressedTime[1] - pressedTime[0]; | ||
pressedTime = [] | ||
if (timeElapsed >= 500) { | ||
attributes.pressedTime.push(timestamp) | ||
if (attributes.pressedTime.length === 2) { | ||
let timeElapsed = attributes.pressedTime[1] - attributes.pressedTime[0]; | ||
attributes.pressedTime = [] | ||
if (timeElapsed >= 100) { | ||
attributes.barcode = '' | ||
@@ -92,0 +92,0 @@ return false |
{ | ||
"name": "vue-barcode-scanner", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Barcode Scanner Plugin for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7352
3
106