* TODO: Add return type. * TODO: Remove `catch` * * @deprecated
()
| 61 | * @deprecated |
| 62 | */ |
| 63 | push(): Promise<any> { |
| 64 | return fetch(`${this.baseUrl}/push`, { |
| 65 | method: 'POST', |
| 66 | headers: { |
| 67 | 'Content-Type': 'application/json; charset=utf-8', |
| 68 | }, |
| 69 | }).catch((e) => { |
| 70 | console.error(e); |
| 71 | }); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * TODO: Add return type. |