Load barcode detection library

This commit is contained in:
Claudio Ortolina
2025-02-13 14:25:47 +00:00
parent ffc55b2147
commit 50a98284c9
4 changed files with 74 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ import "phoenix_html"
import { Socket } from "phoenix"
import { LiveSocket } from "phoenix_live_view"
import topbar from "../vendor/topbar"
import "./barcode-scanner"
let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, {