1 | "use strict";
|
2 |
|
3 | exports.__esModule = true;
|
4 | exports["default"] = exports.appendToCognitoUserAgent = void 0;
|
5 |
|
6 |
|
7 | function UserAgent() {}
|
8 |
|
9 |
|
10 | UserAgent.prototype.userAgent = 'aws-amplify/0.1.x js';
|
11 |
|
12 | var appendToCognitoUserAgent = function appendToCognitoUserAgent(content) {
|
13 | if (!content) {
|
14 | return;
|
15 | }
|
16 |
|
17 | if (UserAgent.prototype.userAgent && !UserAgent.prototype.userAgent.includes(content)) {
|
18 | UserAgent.prototype.userAgent = UserAgent.prototype.userAgent.concat(' ', content);
|
19 | }
|
20 |
|
21 | if (!UserAgent.prototype.userAgent || UserAgent.prototype.userAgent === '') {
|
22 | UserAgent.prototype.userAgent = content;
|
23 | }
|
24 | };
|
25 |
|
26 |
|
27 | exports.appendToCognitoUserAgent = appendToCognitoUserAgent;
|
28 | var _default = UserAgent;
|
29 | exports["default"] = _default; |
\ | No newline at end of file |