get note name from api
This commit is contained in:
@ -54,10 +54,11 @@ $(function () {
|
||||
$textarea.val(content);
|
||||
showToast('#update-indicator');
|
||||
});
|
||||
|
||||
|
||||
// update content after reconnected
|
||||
connection.onreconnected(function() {
|
||||
$.get('api/note', function(content) {
|
||||
$.get(`api/note?noteName=${noteName}`, function(content) {
|
||||
$textarea.val(content);
|
||||
showToast('#update-indicator');
|
||||
console.log('Refreshed after disconnect');
|
||||
|
Reference in New Issue
Block a user