Fix: Hardened types in analytics, hosted file upload, and QR scanner components
This commit is contained in:
@@ -76,7 +76,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// *** Functions and Logic
|
// *** Functions and Logic
|
||||||
async function handle_submit_form_files(event: SubmitEvent) {
|
async function handle_submit_form_files(event: Event) {
|
||||||
console.log('*** handle_submit_form() ***');
|
console.log('*** handle_submit_form() ***');
|
||||||
|
|
||||||
if (!event) {
|
if (!event) {
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
<script lang="ts" module>
|
||||||
|
declare global {
|
||||||
|
interface Window {
|
||||||
|
dataLayer: any[];
|
||||||
|
gtag: (...args: any[]) => void;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { browser } from '$app/environment';
|
import { browser } from '$app/environment';
|
||||||
|
|
||||||
@@ -8,13 +17,6 @@
|
|||||||
|
|
||||||
let { log_lvl = 0, site_google_tracking_id = $bindable('') }: Props = $props();
|
let { log_lvl = 0, site_google_tracking_id = $bindable('') }: Props = $props();
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface Window {
|
|
||||||
dataLayer: any[];
|
|
||||||
gtag: (...args: any[]) => void;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
if (browser && site_google_tracking_id) {
|
if (browser && site_google_tracking_id) {
|
||||||
if (log_lvl) {
|
if (log_lvl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user