Browse Source

Make autoreload interval configurable

simov 7 years ago
parent
commit
7ae07028ab
1 changed files with 2 additions and 1 deletions
  1. 2 1
      content/content.js

+ 2 - 1
content/content.js

@@ -10,6 +10,7 @@ var state = {
   markdown: '',
   toc: '',
   interval: null,
+  ms: 1000,
 }
 
 chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {
@@ -252,6 +253,6 @@ if (state.content.autoreload) {
         console.error(err)
         clearInterval(state.interval)
       }
-    }, 1000)
+    }, state.ms)
   })()
 }