chore: remove intercom dependency

This commit is contained in:
Zamitto 2024-12-04 01:57:47 -03:00
parent 2dcb629c2d
commit 590a1b354d
4 changed files with 2 additions and 20 deletions

View file

@ -120,20 +120,7 @@ export function App() {
updateUserDetails(response);
syncFriendRequests();
const $existingScript = document.getElementById("user-details");
const content = `window.userDetails = ${JSON.stringify(response)};`;
if ($existingScript) {
$existingScript.textContent = content;
} else {
const $script = document.createElement("script");
$script.id = "user-details";
$script.type = "text/javascript";
$script.textContent = content;
document.head.appendChild($script);
}
window["userDetails"] = response;
}
})
.finally(() => {

View file

@ -241,6 +241,7 @@ export interface Subscription {
status: SubscriptionStatus;
plan: { id: string; name: string };
expiresAt: string | null;
paymentMethod: "pix" | "paypal";
}
export interface UserDetails {