Use string interpolation

This commit is contained in:
Aya Morisawa
2018-09-01 23:12:51 +09:00
parent ffb345ccb5
commit 291beb45fc
40 changed files with 53 additions and 53 deletions

View File

@ -110,9 +110,9 @@ export default Vue.extend({
computed: {
draftId(): string {
return this.renote
? 'renote:' + this.renote.id
? `renote:${this.renote.id}`
: this.reply
? 'reply:' + this.reply.id
? `reply:${this.reply.id}`
: 'note';
},
@ -313,7 +313,7 @@ export default Vue.extend({
this.geo = pos.coords;
this.$emit('geo-attached', this.geo);
}, err => {
alert('%i18n:@error%: ' + err.message);
alert(`%i18n:@error%: ${err.message}`);
}, {
enableHighAccuracy: true
});