mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user