| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 508cbbc commit 2adf4e7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,12 @@ const { inspect } = require('util'); | |||
| 89 | 89 | strictEqual(data.enable, undefined); | |
| 90 | 90 | mc.port1.close(); | |
| 91 | 91 | }); | |
| 92 | - setTimeout(() => mc.port2.postMessage(e), 100); | ||
| 92 | + const interval = setInterval(() => { | ||
| 93 | + if (e.count > 0) { | ||
| 94 | + clearInterval(interval); | ||
| 95 | + mc.port2.postMessage(e); | ||
| 96 | + } | ||
| 97 | + }, 50); | ||
| 93 | 98 | } | |
| 94 | 99 | ||
| 95 | 100 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments