fix: error notification
This commit is contained in:
parent
360f4f8c27
commit
9ca125ac55
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ import { addToast } from '$lib/store';
|
|||
export const asyncSleep = (delay: number) =>
|
||||
new Promise((resolve) => setTimeout(resolve, delay));
|
||||
|
||||
export function errorNotification(error: any): void {
|
||||
export function errorNotification(error: any | { message: string }): void {
|
||||
if (error.message) {
|
||||
if (error.message === 'Cannot read properties of undefined (reading \'postMessage\')') {
|
||||
return addToast({
|
||||
|
|
|
|||
Loading…
Reference in a new issue