mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-22 09:24:15 +03:00
search for teh correct script type in the defer callback.
Should fix SF bug #3599063
This commit is contained in:
parent
bb10e7131f
commit
beffd9e481
@ -212,7 +212,7 @@ convert_script_defer_cb(hlcache_handle *script,
|
||||
|
||||
/* Find script */
|
||||
for (i = 0, s = parent->scripts; i != parent->scripts_count; i++, s++) {
|
||||
if (s->type == HTML_SCRIPT_ASYNC && s->data.handle == script)
|
||||
if (s->type == HTML_SCRIPT_DEFER && s->data.handle == script)
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user