mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 02:05:53 +01:00
always use template strings instead of string concatenation
This commit is contained in:
@@ -8,7 +8,7 @@ function SetupModel() {
|
||||
setInterval(checkOutstandingSyncs, 1000);
|
||||
}
|
||||
|
||||
const serverAddress = location.protocol + '//' + location.host;
|
||||
const serverAddress = `${location.protocol}//${location.host}`;
|
||||
|
||||
$("#current-host").html(serverAddress);
|
||||
|
||||
@@ -74,7 +74,7 @@ function SetupModel() {
|
||||
hideAlert();
|
||||
}
|
||||
else {
|
||||
showAlert('Sync setup failed: ' + resp.error);
|
||||
showAlert(`Sync setup failed: ${resp.error}`);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user