Skip to content

Commit fe3c184

Browse files
authored
Fixed the calc between old/missed drips
Now it works.
1 parent 37426aa commit fe3c184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dripper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function getHtmlAttribute() : string
2727
. "}"
2828
. "setInterval(function () { caffeineSendDrip(); }, $this->interval);"
2929
. "setInterval(function () {"
30-
. " if (new Date() - ld >= $this->threshold ) {"
30+
. " if (new Date() - ld >= $this->interval + $this->threshold) {"
3131
. " location.reload(true);"
3232
. " }"
3333
. "}, $this->checkInterval);"

0 commit comments

Comments
 (0)