mirror of
https://github.com/tailormade-eu/obsidian-task-export-plugin.git
synced 2026-07-22 06:41:42 +00:00
fix: Use void operator in file watcher to prevent unhandled promise rejections
This commit is contained in:
parent
b1ac40acf6
commit
12f39a7bba
2 changed files with 2 additions and 2 deletions
2
main.js
2
main.js
|
|
@ -445,7 +445,7 @@ var TaskExportPlugin = class extends import_obsidian3.Plugin {
|
|||
await this.loadSettings();
|
||||
this.exporter = new TaskExporter(this.app);
|
||||
this.fileWatcher = new FileWatcher(
|
||||
() => this.autoExport(),
|
||||
() => void this.autoExport(),
|
||||
this.settings.debounceDelay,
|
||||
this.settings.customersFolder
|
||||
);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ export default class TaskExportPlugin extends Plugin {
|
|||
|
||||
// Initialize file watcher
|
||||
this.fileWatcher = new FileWatcher(
|
||||
() => this.autoExport(),
|
||||
() => void this.autoExport(),
|
||||
this.settings.debounceDelay,
|
||||
this.settings.customersFolder
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue