1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[ecmascript] Always reparse document

This commit is contained in:
Witold Filipczyk 2024-01-31 11:32:53 +01:00
parent e7562a3120
commit 9516ca43ff

View File

@ -261,7 +261,6 @@ delayed_reload(void *data)
assert(rel);
object_unlock(rel->document);
dump_xhtml(rel->cached, rel->document, rel->was_write);
sort_links(rel->document);
draw_formatted(ses, rel->was_write ? 2 : 0);
load_common(ses);
@ -311,7 +310,7 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
rel->cached = cached;
rel->document = document;
rel->ses = ses;
rel->was_write = interpreter->was_write;
rel->was_write = 1 || interpreter->was_write;
object_lock(document);
register_bottom_half(delayed_reload, rel);
}