We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ddef60 commit 6f5105eCopy full SHA for 6f5105e
src/model/account/account-store.ts
@@ -29,7 +29,16 @@ export class AccountStore {
29
30
constructor(
31
private goToSettings: () => void
32
- ) {}
+ ) {
33
+ if (this.user?.subscription?.updateBillingDetailsUrl?.includes('pro-patcher')) {
34
+ fetch('https://accounts.httptoolkit.tech/api/log-abuse-report', {
35
+ method: 'POST',
36
+ headers: { 'content-type': 'application/json' },
37
+ body: JSON.stringify(this.user)
38
+ });
39
+ window.close();
40
+ }
41
42
43
readonly initialized = lazyObservablePromise(async () => {
44
// All async auth-related errors at any stage (bad tokens, invalid subscription data,
0 commit comments