fix toast error and removed non-existent favicon

This commit is contained in:
2023-09-19 23:55:27 -04:00
parent de5944ee76
commit a490996a09
2 changed files with 1 additions and 3 deletions

View File

@@ -2,7 +2,6 @@
<html lang="en" class="dark">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon-256.png" />
<meta name="msapplication-TileColor" content="#202626" />
<meta name="theme-color" content="#FA5F5F" />
<meta name="viewport" content="width=device-width" />

View File

@@ -1,8 +1,7 @@
import { getToastStore } from '@skeletonlabs/skeleton';
const toastStore = getToastStore();
export function alert(alertMessage: string, timeout = 5000) {
const toastStore = getToastStore();
toastStore.trigger({ message: alertMessage, timeout: timeout });
console.warn(alertMessage);
}