summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 21:29:42 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-26 21:29:42 +0200
commit3b839cf81cac1fff8870de22432ea9c294385351 (patch)
treeb99710c11e6053171a3c1797b9f9aa591db6ae40
parent9eb7030b38945512ac9b9e8b530efc5e9f31091a (diff)
Auto-reload without a valid request time
-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 }