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…
Reference in New Issue