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 = [
|
||||
{
|
||||
name: "bridge",
|
||||
support: inRuntime()
|
||||
support: !!inRuntime()
|
||||
},
|
||||
{
|
||||
name: "wx",
|
||||
support: isSupportWxScan()
|
||||
support: !!isSupportWxScan()
|
||||
},
|
||||
{
|
||||
name: "web",
|
||||
support: isSupportWebScan()
|
||||
support: !!isSupportWebScan()
|
||||
},
|
||||
{
|
||||
name: "image",
|
||||
support: isSupportImageScan()
|
||||
support: !!isSupportImageScan()
|
||||
},
|
||||
{
|
||||
name: "scanner",
|
||||
|
||||
@@ -330,7 +330,7 @@ export function isSupportWebScan() {
|
||||
export function isSupportImageScan() {
|
||||
return typeof document !== 'undefined'
|
||||
&& typeof URL !== 'undefined'
|
||||
&& URL.createObjectURL;
|
||||
&& !!URL.createObjectURL;
|
||||
}
|
||||
|
||||
export function stopScanForWeb() {
|
||||
|
||||
Reference in New Issue
Block a user