</script>
<script type="module" src="https://cdn.jsdelivr.net/npm/libnemo@0.0.18/dist/global.min.js"></script>
<script>
- // const barcodeDetector = new BarcodeDetector({
- // formats: ["qr_code"],
- // })
- // const imageFile = await fetch(
- // "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!",
- // ).then(resp => resp.blob())
- // barcodeDetector.detect(imageFile).then(console.log)
// let css
const observer = new MutationObserver((mutations) => {
} catch (err) {
location.hash = '#transact'
}
+ await loadQr()
await loadData()
await loadUi()
console.log('done')
})
+ async function loadQr () {
+ const barcodeDetector = new BarcodeDetector({
+ formats: ["qr_code"],
+ })
+ const imageFile = await fetch(
+ "https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=Hello%20world!",
+ ).then(resp => resp.blob())
+ barcodeDetector.detect(imageFile).then(console.log)
+ }
+
async function loadData () {
console.log('loading data')
const walletSelect = document.querySelector('#wallet')