mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-29 22:30:01 +02:00
Updated barcode-detector lib and wasm in background
This commit is contained in:
parent
a691be6584
commit
883d38ecfc
3 changed files with 26 additions and 26 deletions
|
@ -49,7 +49,7 @@ window.$ = window.jQuery = require("jquery");
|
|||
//Use the local WASM file for the ZXing library
|
||||
import {
|
||||
setZXingModuleOverrides,
|
||||
} from "barcode-detector/pure";
|
||||
} from "barcode-detector/ponyfill";
|
||||
import wasmFile from "../../node_modules/zxing-wasm/dist/reader/zxing_reader.wasm";
|
||||
setZXingModuleOverrides({
|
||||
locateFile: (path, prefix) => {
|
||||
|
@ -58,4 +58,4 @@ setZXingModuleOverrides({
|
|||
}
|
||||
return prefix + path;
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue