This commit is contained in:
pypy
2021-01-21 12:54:48 +09:00
parent b4599577af
commit 0bd5571ede
+3 -3
View File
@@ -967,7 +967,7 @@ speechSynthesis.getVoices();
text = `<strong>${noty.data}</strong> is joining`; text = `<strong>${noty.data}</strong> is joining`;
break; break;
case 'GPS': case 'GPS':
text = '<strong>' + noty.displayName + '</strong> is in ' + await this.displayLocation(noty.location[0]); text = `<strong>${noty.displayName}</strong> is in ${await this.displayLocation(noty.location[0])}`;
break; break;
case 'Online': case 'Online':
text = `<strong>${noty.displayName}</strong> has logged in`; text = `<strong>${noty.displayName}</strong> has logged in`;
@@ -1039,7 +1039,7 @@ speechSynthesis.getVoices();
this.speak(`${noty.data} is joining`); this.speak(`${noty.data} is joining`);
break; break;
case 'GPS': case 'GPS':
this.speak(noty.displayName + ' is in ' + await this.displayLocation(noty.location[0])); this.speak(`${noty.displayName} is in ${await this.displayLocation(noty.location[0])}`);
break; break;
case 'Online': case 'Online':
this.speak(`${noty.displayName} has logged in`); this.speak(`${noty.displayName} has logged in`);
@@ -1115,7 +1115,7 @@ speechSynthesis.getVoices();
AppApi.DesktopNotification(noty.data, 'is joining', imageURL); AppApi.DesktopNotification(noty.data, 'is joining', imageURL);
break; break;
case 'GPS': case 'GPS':
AppApi.DesktopNotification(noty.displayName, 'is in ' + await this.displayLocation(noty.location[0]), imageURL); AppApi.DesktopNotification(noty.displayName, `is in ${await this.displayLocation(noty.location[0])}`, imageURL);
break; break;
case 'Online': case 'Online':
AppApi.DesktopNotification(noty.displayName, 'has logged in', imageURL); AppApi.DesktopNotification(noty.displayName, 'has logged in', imageURL);