fix
This commit is contained in:
@@ -294,7 +294,8 @@ export function isSupportWebScan() {
|
||||
return typeof navigator !== 'undefined'
|
||||
&& navigator.mediaDevices
|
||||
&& navigator.mediaDevices.getUserMedia
|
||||
&& !!getBarcodeDetectorClass();
|
||||
&& !!getBarcodeDetectorClass()
|
||||
&& getConfig("webScanEnabled") !== false;
|
||||
}
|
||||
|
||||
export function isSupportImageScan() {
|
||||
@@ -397,7 +398,7 @@ export function startScanForWeb(canvasStyle, onResult) {
|
||||
let videoEl = createEl("video",
|
||||
"__webscan_video__",
|
||||
"display: none", false);
|
||||
let canvasEnabled = getConfig("webCanvasEnabled") !== false;
|
||||
let canvasEnabled = getConfig("webScanCanvasEnabled") !== false;
|
||||
let canvasDisplay = "";
|
||||
let canvasBaseStyle = canvasStyle || "position: fixed; width: 300px; height: 300px; top: 0; left: 0; z-index: 9999;";
|
||||
let canvasEl = createEl("canvas",
|
||||
|
||||
Reference in New Issue
Block a user