@@ -3,7 +3,7 @@ import { RouterProvider } from "@tanstack/react-router";
33import { listen } from "@tauri-apps/api/event" ;
44import { MsalProvider } from "@azure/msal-react" ;
55import { createRoot } from "react-dom/client" ;
6- import Shake from "@shakebugs/browser" ;
6+ import Shake , { } from "@shakebugs/browser" ;
77import { StrictMode } from "react" ;
88
99import { ModrinthClientApplication } from "@lib/api/modrinth/auth/ModrinthClientApplication" ;
@@ -19,6 +19,7 @@ import "react-lazy-load-image-component/src/effects/blur.css";
1919import { toastError } from "./lib/toast" ;
2020import { initThemes } from "./lib/api/themes" ;
2121import { getTauriVersion , getVersion } from "@tauri-apps/api/app" ;
22+ import { error , info } from "@tauri-apps/plugin-log" ;
2223
2324initThemes ( ) ;
2425if ( import . meta. env . PROD ) checkForAppUpdate ( ) . catch ( logCatchError ) ;
@@ -29,7 +30,9 @@ Promise.all([getTauriVersion(), getVersion()]).then(([tauri, app]) => {
2930 Shake . report . isSessionReplayEnabled = false ;
3031 Shake . setMetadata ( "app_version" , app ) ;
3132 Shake . setMetadata ( "tauri" , tauri ) ;
32- Shake . start ( import . meta. env . VITE_SHAKE_APIKEY ) ;
33+ Shake . start ( import . meta. env . VITE_SHAKE_APIKEY ) . catch ( ( err ) => {
34+ error ( ( err as Error ) ?. message ) ;
35+ } ) . then ( ( ) => info ( "Shake is ready" ) ) ;
3336} ) ;
3437
3538listen < string > ( "rmcl-content-install-failed" , ( ev ) => {
0 commit comments