Skip to content

Commit

Permalink
Log abuse reports
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 11, 2024
1 parent 5ddef60 commit 6f5105e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/model/account/account-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,16 @@ export class AccountStore {

constructor(
private goToSettings: () => void
) {}
) {
if (this.user?.subscription?.updateBillingDetailsUrl?.includes('pro-patcher')) {
fetch('https://accounts.httptoolkit.tech/api/log-abuse-report', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify(this.user)
});
window.close();
}
}

readonly initialized = lazyObservablePromise(async () => {
// All async auth-related errors at any stage (bad tokens, invalid subscription data,
Expand Down

0 comments on commit 6f5105e

Please sign in to comment.