google translate missing chinese strings

This commit is contained in:
or-else
2020-02-04 18:05:58 +03:00
parent 50a775fc72
commit 858e62f732
2 changed files with 16 additions and 12 deletions
+6 -2
View File
@@ -7,8 +7,12 @@ firebase.initializeApp(FIREBASE_INIT);
// This method shows the notifications.
firebase.messaging().setBackgroundMessageHandler(function(payload) {
let title = payload.data.title || "New message";
let options = {
if (payload.data.silent === 'true') {
return;
}
const pushType = payload.data.what || 'msg';
const title = payload.data.title || (pushType == 'msg' ? "New message" : "New chat");
const options = {
body: payload.data.content || "",
icon: '/img/logo96.png',
badge: '/img/badge96.png',