chore: web cleanup (#16849)

This commit is contained in:
Jason Rasmussen
2025-03-13 18:04:21 -04:00
committed by GitHub
parent 858d1e9d9b
commit f69d7e7bad
6 changed files with 20 additions and 22 deletions
+7 -7
View File
@@ -2,14 +2,14 @@ import { AppRoute } from '$lib/constants';
import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (({ url }) => {
enum LinkTarget {
HOME = 'home',
UNSUBSCRIBE = 'unsubscribe',
VIEW_ASSET = 'view_asset',
ACTIVATE_LICENSE = 'activate_license',
}
enum LinkTarget {
HOME = 'home',
UNSUBSCRIBE = 'unsubscribe',
VIEW_ASSET = 'view_asset',
ACTIVATE_LICENSE = 'activate_license',
}
export const load = (({ url }) => {
const queryParams = url.searchParams;
const target = queryParams.get('target') as LinkTarget;
switch (target) {