Skip to content

Commit 58aa590

Browse files
committed
appId property added in firebaseConfig object
1 parent c8f42f0 commit 58aa590

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

src/environments/environment.pre.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ export const environment = {
1616
uploadEngine: 'native',
1717
tenant: 'tilechat',
1818
fileUploadAccept:"*/*",
19-
logLevel: 5,
19+
logLevel: 2,
2020
firebaseConfig: {
2121
apiKey: 'CHANGEIT',
2222
authDomain: 'CHANGEIT',
2323
databaseURL: 'CHANGEIT',
2424
projectId: 'CHANGEIT',
2525
storageBucket: 'CHANGEIT',
2626
messagingSenderId: 'CHANGEIT',
27+
appId: 'CHANGEIT'
2728
},
2829
chat21Config: {
2930
appId: 'tilechat',

src/environments/environment.prod.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ export const environment = {
1414
uploadEngine: 'CHANGEIT',
1515
tenant: 'CHANGEIT',
1616
fileUploadAccept:"*/*",
17-
logLevel: 5,
17+
logLevel: 2,
1818
firebaseConfig: {
1919
apiKey: 'CHANGEIT',
2020
authDomain: 'CHANGEIT',
2121
databaseURL: 'CHANGEIT',
2222
projectId: 'CHANGEIT',
2323
storageBucket: 'CHANGEIT',
24-
messagingSenderId: 'CHANGEIT'
24+
messagingSenderId: 'CHANGEIT',
25+
appId: 'CHANGEIT'
2526
},
2627
chat21Config: {
2728
appId: 'tilechat',

src/environments/environment.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ export const environment = {
1414
uploadEngine: 'native',
1515
tenant: 'tilechat',
1616
fileUploadAccept:"*/*",
17-
logLevel: 5,
17+
logLevel: 2,
1818
firebaseConfig: {
1919
apiKey: 'CHANGEIT',
2020
authDomain: 'CHANGEIT',
2121
databaseURL: 'CHANGEIT',
2222
projectId: 'CHANGEIT',
2323
storageBucket: 'CHANGEIT',
24-
messagingSenderId: 'CHANGEIT'
24+
messagingSenderId: 'CHANGEIT',
25+
appId: 'CHANGEIT',
2526
},
2627
chat21Config: {
2728
appId: 'tilechat',

src/launch.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,14 @@ function initAysncEvents() {
230230
}
231231
var methodOrProperty = window.tiledesk[functionName];
232232
if(typeof methodOrProperty==="function"){
233-
console.log("method", functionName, functionCallback);
233+
console.log("method:", functionName, functionCallback);
234234
return window.tiledesk[functionName](functionCallback);
235235
}else { //property
236-
console.log("property", functionName, functionCallback);
236+
console.log("property:", functionName, functionCallback);
237237
return window.tiledesk[functionName];
238238
}
239239
}
240-
};
241-
console.log("ovverrided");
240+
};
242241

243242
}
244243
});
@@ -318,7 +317,7 @@ function signInWithCustomToken() {
318317
throw new Error('CORS not supported');
319318
}
320319
httpRequest.setRequestHeader('Content-type','application/json');
321-
httpRequest.send(json);
320+
httpRequest.send(json);
322321
httpRequest.onload = function() {
323322
if (httpRequest.readyState === XMLHttpRequest.DONE) {
324323
if (httpRequest.status === 200) {

src/widget-config-template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"databaseURL": "${FIREBASE_DATABASEURL}",
1313
"projectId": "${FIREBASE_PROJECT_ID}",
1414
"storageBucket": "${FIREBASE_STORAGEBUCKET}",
15-
"appId": "${FIREBASE_APP_ID}",
16-
"messagingSenderId": "${FIREBASE_MESSAGINGSENDERID}"
15+
"messagingSenderId": "${FIREBASE_MESSAGINGSENDERID}",
16+
"appId": "${FIREBASE_APP_ID}"
1717
},
1818
"chat21Config": {
1919
"appId": "${MQTT_APPID}",

src/widget-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"databaseURL": "CHANGEIT",
1313
"projectId": "CHANGEIT",
1414
"storageBucket": "CHANGEIT",
15-
"appId": "CHANGEIT",
16-
"messagingSenderId": "CHANGEIT"
15+
"messagingSenderId": "CHANGEIT",
16+
"appId": "CHANGEIT"
1717
},
1818
"chat21Config": {
1919
"appId": "tilechat",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"lib": [
1616
"es2018",
1717
"dom"
18-
]
18+
],
19+
"skipLibCheck": true
1920
}
2021
}

0 commit comments

Comments
 (0)