mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[ecmascript] Do not fire onload event, when in plain text mode
This commit is contained in:
parent
af11da3e1c
commit
d10fe7d3c7
@ -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);
|
||||||
|
|
||||||
fire_onload(document->dom);
|
if (!vs->plain) {
|
||||||
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user