Fixed an issue with client-side checking

This commit is contained in:
goenning 2023-09-20 10:12:45 +01:00
parent f440679594
commit 2aaf2e8c1e
4 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
## 0.1.2
- Fixed an issue with client-side checking
## 0.1.1
- Remove warning log from Server Side Rendering

View file

@ -1,6 +1,6 @@
{
"name": "@aptabase/react",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
"main": "./dist/index.cjs",

View file

@ -33,7 +33,7 @@ export function AptabaseProvider({ appKey, options, children }: Props) {
export function useAptabase(): AptabaseClient {
const ctx = useContext(AptabaseContext);
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
return {
trackEvent: (eventName: string) => {
console.warn(