summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/documentwidget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index c953e0f3..947d9d5f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2037,8 +2037,7 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2037 } 2037 }
2038 else if (equal_Command(cmd, "document.autoreload")) { 2038 else if (equal_Command(cmd, "document.autoreload")) {
2039 if (d->mod.reloadInterval) { 2039 if (d->mod.reloadInterval) {
2040 if (isValid_Time(&d->sourceTime) && 2040 if (!isValid_Time(&d->sourceTime) || elapsedSeconds_Time(&d->sourceTime) >=
2041 elapsedSeconds_Time(&d->sourceTime) >=
2042 seconds_ReloadInterval_(d->mod.reloadInterval)) { 2041 seconds_ReloadInterval_(d->mod.reloadInterval)) {
2043 postCommand_Widget(w, "document.reload"); 2042 postCommand_Widget(w, "document.reload");
2044 } 2043 }