Procházet zdrojové kódy

modify debounce time to notify body changes

Yuki Takei před 7 roky
rodič
revize
80d6a3f54f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      resource/js/hackmd-agent.js

+ 1 - 1
resource/js/hackmd-agent.js

@@ -65,7 +65,7 @@ function postParentToNotifyBodyChanges(body) {
   window.growi.notifyBodyChanges(body);
   window.growi.notifyBodyChanges(body);
 }
 }
 // generate debounced function
 // generate debounced function
-const debouncedPostParentToNotifyBodyChanges = debounce(1500, postParentToNotifyBodyChanges);
+const debouncedPostParentToNotifyBodyChanges = debounce(800, postParentToNotifyBodyChanges);
 
 
 /**
 /**
  * postMessage to GROWI to save with shortcut
  * postMessage to GROWI to save with shortcut