Skip to content

Commit

Permalink
trying to uploading for wasm file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYong committed Apr 16, 2020
1 parent 9c4ac86 commit e400cf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/pages/demo-zxing-wasm-scanner-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let DemoMixedScannerPopup: FC<{}> = React.memo((props) => {

let popupScanner = usePopupZxingWasmScanner({
errorLocale: "扫码错误: 无法获取相机图像 无法获取相机图像(可能是因为没有 HTTPS 权限)",
zxingWasmPath: "/wasm/zxing-go.wasm",
zxingWasmPath: "wasm/zxing-go.wasm",
onCodeDetected: (code, codeType) => {
console.log(code, codeType);
},
Expand Down
2 changes: 1 addition & 1 deletion example/pages/demo-zxing-wasm-scanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let DemoZxingWasmScanner: FC<{ className?: string }> = React.memo((props) => {
onCodeDetected={(code) => {
console.log("got code", JSON.stringify(code));
}}
zxingWasmPath="/wasm/zxing-go.wasm"
zxingWasmPath="wasm/zxing-go.wasm"
/>
</DocDemo>
</div>
Expand Down

0 comments on commit e400cf3

Please sign in to comment.