Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 84d646f

Browse files
committed
using axios instance
1 parent e39cf68 commit 84d646f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class Analytics {
5353
enumerable: true,
5454
value: typeof options.enable === 'boolean' ? options.enable : true
5555
})
56-
this.axiosClient = axios.create()
57-
axiosRetry(this.axiosClient, {
56+
axiosRetry(this.axiosInstance, {
5857
retries: options.retryCount || 3,
5958
retryCondition: this._isErrorRetryable,
6059
retryDelay: axiosRetry.exponentialDelay

0 commit comments

Comments
 (0)