Skip to content

Commit

Permalink
[MOD] Start first scan as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJbt committed Oct 12, 2024
1 parent 7f0ef0e commit 9c05314
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ async function onDomLoaded() {
*/
function planRunning(_time) {
// if last < delai
if ((new Date().getTime()) < window['asleLastRun'] + 1500) {
if (window['asleLastRun'] === null
|| (new Date().getTime()) < window['asleLastRun'] + 1500) {
// clearTimeout
clearTimeout(window['aslePlanned']);
// settimeout
Expand Down

0 comments on commit 9c05314

Please sign in to comment.