Skip to content

Commit a17ddf6

Browse files
committed
use getSendEventCond func
1 parent b5e2d21 commit a17ddf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browser/main/lib/AwsMobileAnalyticsConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const os = require('os')
77
let mobileAnalyticsClient
88

99
AWS.config.region = 'us-east-1'
10-
if (process.env.NODE_ENV === 'production' && ConfigManager.default.get().amaEnabled && window.navigator.onLine) {
10+
if (!getSendEventCond()) {
1111
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
1212
IdentityPoolId: 'us-east-1:xxxxxxxxxxxxxxxxxxxxxxxxx'
1313
})

0 commit comments

Comments
 (0)