Fix scanning of small QR codes with JS (#22651)

* Fix scanning of small QR codes with JS

* fix filename

* fix qr error and add device button

* fix yarn.lock
This commit is contained in:
Petar Petrov
2024-11-05 16:00:05 +02:00
committed by GitHub
parent 4db908171f
commit fa39595c37
7 changed files with 65 additions and 9 deletions

View File

@@ -106,6 +106,14 @@ function copyMapPanel(staticDir) {
);
}
function copyZXingWasm(staticDir) {
const staticPath = genStaticPath(staticDir);
copyFileDir(
npmPath("zxing-wasm/dist/reader/zxing_reader.wasm"),
staticPath("js")
);
}
gulp.task("copy-locale-data", async () => {
const staticDir = paths.app_output_static;
copyLocaleData(staticDir);
@@ -143,6 +151,7 @@ gulp.task("copy-static-app", async () => {
copyMapPanel(staticDir);
// Qr Scanner assets
copyZXingWasm(staticDir);
copyQrScannerWorker(staticDir);
});