@helpway/react 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  // ../widget-core/src/client.ts
2
4
  import { createTRPCClient, httpBatchLink } from "@trpc/client";
3
5
 
@@ -924,7 +926,7 @@ function inferApiUrl() {
924
926
  }
925
927
  }
926
928
  }
927
- return typeof window !== "undefined" ? window.location.origin : "http://localhost:52500";
929
+ return "https://api.helpway.ai";
928
930
  }
929
931
 
930
932
  // src/themed/default-widget.tsx