mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
client: Remove errors in log when changing a setting
This commit is contained in:
@@ -57,7 +57,17 @@ class NoteContextAwareWidget extends BasicWidget {
|
||||
async refresh() {
|
||||
if (this.isEnabled()) {
|
||||
this.toggleInt(true);
|
||||
await this.refreshWithNote(this.note);
|
||||
|
||||
try {
|
||||
await this.refreshWithNote(this.note);
|
||||
} catch (e) {
|
||||
// Ignore errors when user is refreshing or navigating away.
|
||||
if (e === "rejected by browser") {
|
||||
return;
|
||||
}
|
||||
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
else {
|
||||
this.toggleInt(false);
|
||||
|
||||
Reference in New Issue
Block a user