fix
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -440,19 +440,19 @@ export function scanImage() {
|
|||||||
export const supportList = [
|
export const supportList = [
|
||||||
{
|
{
|
||||||
name: "bridge",
|
name: "bridge",
|
||||||
support: inRuntime()
|
support: !!inRuntime()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "wx",
|
name: "wx",
|
||||||
support: isSupportWxScan()
|
support: !!isSupportWxScan()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "web",
|
name: "web",
|
||||||
support: isSupportWebScan()
|
support: !!isSupportWebScan()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "image",
|
name: "image",
|
||||||
support: isSupportImageScan()
|
support: !!isSupportImageScan()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "scanner",
|
name: "scanner",
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ export function isSupportWebScan() {
|
|||||||
export function isSupportImageScan() {
|
export function isSupportImageScan() {
|
||||||
return typeof document !== 'undefined'
|
return typeof document !== 'undefined'
|
||||||
&& typeof URL !== 'undefined'
|
&& typeof URL !== 'undefined'
|
||||||
&& URL.createObjectURL;
|
&& !!URL.createObjectURL;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function stopScanForWeb() {
|
export function stopScanForWeb() {
|
||||||
|
|||||||
Reference in New Issue
Block a user