Skip to content

Commit

Permalink
fix things i broke
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed Dec 3, 2024
1 parent eebacdd commit 82fde4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/src/content/components/barqode-dropzone.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ section: Components
---

<script>
import Demo from '$lib/components/demos/barqode-drop-zone.svelte';
import Demo from '$lib/components/demos/barqode-dropzone.svelte';
</script>

You can drag-and-drop image files from your desktop or images embedded into other web pages anywhere in the area the component occupies. The images are directly scanned and positive results are indicated by the `onDetect` callback.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { BarqodeDropZone, type DetectedBarcode } from "barqode";
import { BarqodeDropzone, type DetectedBarcode } from "barqode";
import { DemoContainer } from "@svecodocs/kit";
let result = $state("");
Expand All @@ -17,9 +17,9 @@
<DemoContainer>
<div class="title">Detecting QR-codes</div>

<BarqodeDropZone {onDetect} {onDragover}>
<BarqodeDropzone {onDetect} {onDragover}>
<div class="dropzone" class:dragover>Drop an image here to detect QR-codes</div>
</BarqodeDropZone>
</BarqodeDropzone>

<div class="result">
Last detected: {result}
Expand Down
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/internal/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
StreamLoadTimeoutError,
} from "./errors.js";
import { eventOn, sleep } from "./callforth.js";
import shimGetUserMedia from "./shimGetUserMedia.js";
import shimGetUserMedia from "./shim-get-user-media.js";
import { assertNever } from "./util.js";

type StartTaskResult = {
Expand Down

0 comments on commit 82fde4c

Please sign in to comment.