@smartico/public-api 0.0.218 → 0.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -2932,7 +2932,12 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
2932
2932
|
return C_SOCKET_PROD.replace('{ENV_ID}', SmarticoAPI.getEnvDnsSuffix(label_api_key));
|
|
2933
2933
|
};
|
|
2934
2934
|
SmarticoAPI.getAvatarUrl = function getAvatarUrl(label_api_key) {
|
|
2935
|
-
|
|
2935
|
+
var envId = SmarticoAPI.getEnvDnsSuffix(label_api_key);
|
|
2936
|
+
if (envId === '4') {
|
|
2937
|
+
return 'https://dvm0p9vsezqr2.cloudfront.net';
|
|
2938
|
+
} else {
|
|
2939
|
+
return AVATAR_DOMAIN.replace('{ENV_ID}', SmarticoAPI.getEnvDnsSuffix(label_api_key));
|
|
2940
|
+
}
|
|
2936
2941
|
};
|
|
2937
2942
|
var _proto = SmarticoAPI.prototype;
|
|
2938
2943
|
_proto.send = function send(message, expectCID, force_language) {
|