Merge branch 'master' into dev/multiple-notes
This commit is contained in:
@ -57,7 +57,7 @@ textarea {
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
.dark textarea {
|
||||
body.dark, body.dark input, body.dark textarea {
|
||||
background-color: #222;
|
||||
color: #ddd;
|
||||
}
|
||||
|
@ -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');
|
||||
|
Reference in New Issue
Block a user