mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
use resource:favicon.ico instead of resource:favicon.png
svn path=/trunk/netsurf/; revision=12982
This commit is contained in:
parent
8a293636fb
commit
4c829ae481
@ -78,7 +78,7 @@ static const char *fetch_resource_paths[] = {
|
||||
"quirks.css",
|
||||
"credits.html",
|
||||
"licence.html",
|
||||
"favicon.png",
|
||||
"favicon.ico",
|
||||
"netsurf.png"
|
||||
};
|
||||
static struct fetch_resource_map_entry {
|
||||
|
@ -997,7 +997,7 @@ static void browser_window_update_favicon(hlcache_handle *c,
|
||||
/* no favicon via link, try for the default location */
|
||||
error = nsurl_join(nsurl, "/favicon.ico", &nsurl);
|
||||
} else {
|
||||
error = nsurl_create("resource:favicon.png", &nsurl);
|
||||
error = nsurl_create("resource:favicon.ico", &nsurl);
|
||||
}
|
||||
if (error != NSERROR_OK) {
|
||||
LOG(("Unable to create default location url"));
|
||||
|
@ -327,6 +327,10 @@ nsurl *gui_get_resource_url(const char *path)
|
||||
if (strcmp(path, "default.css") == 0)
|
||||
path = "gtkdefault.css";
|
||||
|
||||
/* favicon.ico -> favicon.png */
|
||||
if (strcmp(path, "favicon.ico") == 0)
|
||||
path = "favicon.png";
|
||||
|
||||
raw = path_to_url(filepath_sfind(respaths, buf, path));
|
||||
if (raw != NULL) {
|
||||
nsurl_create(raw, &url);
|
||||
|
Loading…
Reference in New Issue
Block a user