mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
chore: remove intercom dependency
This commit is contained in:
parent
2dcb629c2d
commit
590a1b354d
4 changed files with 2 additions and 20 deletions
|
@ -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(() => {
|
||||
|
|
|
@ -241,6 +241,7 @@ export interface Subscription {
|
|||
status: SubscriptionStatus;
|
||||
plan: { id: string; name: string };
|
||||
expiresAt: string | null;
|
||||
paymentMethod: "pix" | "paypal";
|
||||
}
|
||||
|
||||
export interface UserDetails {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue