1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-20 01:46:15 -04:00

[ecmascript] Do not fire onload event, when in plain text mode

This commit is contained in:
Witold Filipczyk 2024-07-05 16:33:17 +02:00
parent af11da3e1c
commit d10fe7d3c7

View File

@ -301,7 +301,9 @@ check_for_snippets(struct view_state *vs, struct document_options *options, stru
&vs->ecmascript->onload_snippets, &vs->ecmascript->onload_snippets,
&vs->ecmascript->current_onload_snippet); &vs->ecmascript->current_onload_snippet);
if (!vs->plain) {
fire_onload(document->dom); fire_onload(document->dom);
}
check_for_rerender(vs->ecmascript, "process_snippets"); check_for_rerender(vs->ecmascript, "process_snippets");
vs->ecmascript->onload_snippets_cache_id = 0; vs->ecmascript->onload_snippets_cache_id = 0;