mirror of
https://github.com/alberti42/obsidian-plugins-annotations.git
synced 2026-07-22 10:10:24 +00:00
Comment
This commit is contained in:
parent
310fe32c2b
commit
56de2c7d4b
2 changed files with 1 additions and 2 deletions
|
|
@ -57,7 +57,6 @@ export default class PluginsAnnotations extends Plugin {
|
|||
constructor(app:App, manifest:PluginManifest) {
|
||||
super(app, manifest);
|
||||
|
||||
|
||||
// Set up debounced saving functions
|
||||
const timeout_debounced_saving_ms = 100;
|
||||
const { debouncedFct, waitFnc } = debounceFactoryWithWaitMechanism(
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ export function debounceFactoryWithWaitMechanism<F extends (...args: never[]) =>
|
|||
promise = new Promise<void>((resolve, reject) => {
|
||||
// Set the new resolvePromise function
|
||||
resolvePromise = () => {
|
||||
resolve(); // Resolve to indicate that the previous execution was cancelled
|
||||
resolve(); // Reference to resolve() used when the previous execution is cancelled
|
||||
};
|
||||
|
||||
// Schedule the function to run after the debounce delay
|
||||
|
|
|
|||
Loading…
Reference in a new issue