Merge branch 'master' into dev/multiple-notes

This commit is contained in:
Ryan Peters
2023-07-10 13:24:31 -04:00
7 changed files with 39 additions and 28 deletions

View File

@ -55,6 +55,15 @@ $(function () {
showToast('#update-indicator');
});
// update content after reconnected
connection.onreconnected(function() {
$.get('api/note', function(content) {
$textarea.val(content);
showToast('#update-indicator');
console.log('Refreshed after disconnect');
});
});
// set dark mode
if (window.location.hash == '#dark') {
$('body').addClass('dark');