Fix: Hardened types in analytics, hosted file upload, and QR scanner components

This commit is contained in:
Scott Idem
2026-01-22 19:47:16 -05:00
parent 32002fe6bd
commit c81ce50a00
2 changed files with 10 additions and 8 deletions

View File

@@ -76,7 +76,7 @@
}
// *** Functions and Logic
async function handle_submit_form_files(event: SubmitEvent) {
async function handle_submit_form_files(event: Event) {
console.log('*** handle_submit_form() ***');
if (!event) {

View File

@@ -1,3 +1,12 @@
<script lang="ts" module>
declare global {
interface Window {
dataLayer: any[];
gtag: (...args: any[]) => void;
}
}
</script>
<script lang="ts">
import { browser } from '$app/environment';
@@ -8,13 +17,6 @@
let { log_lvl = 0, site_google_tracking_id = $bindable('') }: Props = $props();
declare global {
interface Window {
dataLayer: any[];
gtag: (...args: any[]) => void;
}
}
$effect(() => {
if (browser && site_google_tracking_id) {
if (log_lvl) {