mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-21 22:11:22 +03:00
html: css: Minor code style fix
This commit is contained in:
parent
303d5f251f
commit
74ab1eb244
@ -396,10 +396,10 @@ bool html_css_process_link(html_content *htmlc, dom_node *node)
|
||||
if (exc != DOM_NO_ERR || rel == NULL)
|
||||
return true;
|
||||
|
||||
if (strcasestr(dom_string_data(rel), "stylesheet") == 0) {
|
||||
if (strcasestr(dom_string_data(rel), "stylesheet") == NULL) {
|
||||
dom_string_unref(rel);
|
||||
return true;
|
||||
} else if (strcasestr(dom_string_data(rel), "alternate") != 0) {
|
||||
} else if (strcasestr(dom_string_data(rel), "alternate") != NULL) {
|
||||
/* Ignore alternate stylesheets */
|
||||
dom_string_unref(rel);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user