always use template strings instead of string concatenation

This commit is contained in:
zadam
2022-12-21 15:19:05 +01:00
parent ea006993f6
commit 1b24276a4a
154 changed files with 433 additions and 437 deletions

View File

@@ -35,11 +35,11 @@ export default class SharedInfoWidget extends NoteContextAwareWidget {
const shareId = this.getShareId(note);
if (syncServerHost) {
link = syncServerHost + "/share/" + shareId;
link = `${syncServerHost}/share/${shareId}`;
this.$sharedText.text("This note is shared publicly on");
}
else {
link = location.protocol + '//' + location.host + location.pathname + "share/" + shareId;
link = `${location.protocol}//${location.host}${location.pathname}share/${shareId}`;
this.$sharedText.text("This note is shared locally on");
}