Fixed MeshMessenger notification title.
Ylian Saint-Hilaire committed
Jan 26, 2021 at 12:46 UTC
82ef3e82326e81f2e917e7e67ea22724ebe8d7fa
2 files changed
+13
-19
translate/translate.json
+12
-14
@@ -7604,7 +7604,7 @@
7604
"zh-chs": "聊天时段",
7605
"zh-cht": "聊天時段",
7606
"xloc": [
7607
- "messenger.handlebars->13->17"
7607
+ "messenger.handlebars->13->15"
7608
]
7609
},
7610
{
@@ -9472,7 +9472,7 @@
9472
"zh-chs": "已连接。",
9473
"zh-cht": "已連接。",
9474
"xloc": [
9475
- "messenger.handlebars->13->15"
9475
+ "messenger.handlebars->13->13"
9476
]
9477
},
9478
{
@@ -9562,7 +9562,7 @@
9562
"zh-chs": "连接已关闭。",
9563
"zh-cht": "連接已關閉。",
9564
"xloc": [
9565
- "messenger.handlebars->13->7"
9565
+ "messenger.handlebars->13->5"
9566
]
9567
},
9568
{
@@ -13272,7 +13272,7 @@
13272
"zh-cht": "下載",
13273
"xloc": [
13274
"download.handlebars->container->page_content->column_l->1",
13275
- "messenger.handlebars->13->12"
13275
+ "messenger.handlebars->13->10"
13276
]
13277
},
13278
{
@@ -15712,7 +15712,7 @@
15712
"zh-chs": "错误:未指定连接密钥。",
15713
"zh-cht": "錯誤:未指定連接密鑰。",
15714
"xloc": [
15715
- "messenger.handlebars->13->16"
15715
+ "messenger.handlebars->13->14"
15716
]
15717
},
15718
{
@@ -22067,8 +22067,8 @@
22067
"zh-chs": "一次最多可上传10个档案。",
22068
"zh-cht": "一次最多可上傳10個檔案。",
22069
"xloc": [
22070
- "messenger.handlebars->13->8",
22071
- "messenger.handlebars->13->9"
22070
+ "messenger.handlebars->13->6",
22071
+ "messenger.handlebars->13->7"
22072
]
22073
},
22074
{
@@ -22687,7 +22687,7 @@
22687
"zh-chs": "本地",
22688
"zh-cht": "本地",
22689
"xloc": [
22690
- "messenger.handlebars->13->6",
22690
+ "messenger.handlebars->13->4",
22691
"messenger.handlebars->localVideo->1"
22692
]
22693
},
@@ -24824,9 +24824,7 @@
24824
"zh-chs": "MeshMessenger",
24825
"zh-cht": "MeshMessenger",
24826
"xloc": [
24827
- "messenger.handlebars->13->1",
24828
- "messenger.handlebars->13->4",
24829
- "messenger.handlebars->13->5"
24827
+ "messenger.handlebars->13->1"
24828
]
24829
},
24830
{
@@ -40572,7 +40570,7 @@
40570
"default-mobile.handlebars->container->page_content->column_l->p5->p5myfiles->p5toolbar->1->0->1->3",
40571
"default.handlebars->container->column_l->p13->p13toolbar->1->2->1->3",
40572
"default.handlebars->container->column_l->p5->p5toolbar->1->0->p5filehead->3",
40575
- "messenger.handlebars->13->10"
40573
+ "messenger.handlebars->13->8"
40574
]
40575
},
40576
{
@@ -42320,7 +42318,7 @@
42318
"zh-chs": "正在等待其他用户...",
42319
"zh-cht": "正在等待其他用戶...",
42320
"xloc": [
42323
- "messenger.handlebars->13->14"
42321
+ "messenger.handlebars->13->12"
42322
]
42323
},
42324
{
@@ -44202,7 +44200,7 @@
44200
"zh-cht": "字節",
44201
"xloc": [
44202
"messenger.handlebars->13->11",
44205
- "messenger.handlebars->13->13"
44203
+ "messenger.handlebars->13->9"
44204
]
44205
},
44206
{
views/messenger.handlebars
+1
-5
@@ -216,11 +216,7 @@
216
if (Notification) { QV('notifyButton', Notification.permission != 'granted'); }
217
if (Notification && (windowFocus == false) && (Notification.permission == 'granted')) {
218
if (notification != null) { notification.close(); notification = null; }
219
- if (args.title) {
220
- notification = new Notification("MeshMessenger" + ' - ' + args.title, { body: msg });
221
- } else {
222
- notification = new Notification("MeshMessenger", { body: msg });
223
- }
219
+ notification = new Notification(Q('xtitle').innerHTML.split(' ').join(' '), { body: msg });
220
}
221
}
222