From 3b839cf81cac1fff8870de22432ea9c294385351 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 26 Feb 2021 21:29:42 +0200 Subject: Auto-reload without a valid request time --- src/ui/documentwidget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ui') 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) } else if (equal_Command(cmd, "document.autoreload")) { if (d->mod.reloadInterval) { - if (isValid_Time(&d->sourceTime) && - elapsedSeconds_Time(&d->sourceTime) >= + if (!isValid_Time(&d->sourceTime) || elapsedSeconds_Time(&d->sourceTime) >= seconds_ReloadInterval_(d->mod.reloadInterval)) { postCommand_Widget(w, "document.reload"); } -- cgit v1.2.3