X-Git-Url: https://git.danieliu.xyz/?p=surf.git;a=blobdiff_plain;f=surf.c;h=51c181317ba8b54f360e3af530c6e9e934db7f14;hp=694eff8c8ac07c5ea9453c777b9a45ef59778a5b;hb=a1328457cff30dc678a1b8e80dc44ddb73ce293c;hpb=25652669ef1fc4c0024542c5d7a90a58ba99bcbd diff --git a/surf.c b/surf.c index 694eff8..51c1813 100644 --- a/surf.c +++ b/surf.c @@ -782,11 +782,10 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a) WEBKIT_TLS_ERRORS_POLICY_IGNORE); break; case Style: + webkit_user_content_manager_remove_all_style_sheets( + webkit_web_view_get_user_content_manager(c->view)); if (a->b) setstyle(c, getstyle(geturi(c))); - else - webkit_user_content_manager_remove_all_style_sheets( - webkit_web_view_get_user_content_manager(c->view)); refresh = 0; break; case ZoomLevel: