Fix favicon updating on Opera. See comments, issue #30
This commit is contained in:
parent
b1131d28f8
commit
3024346b94
@ -2774,8 +2774,9 @@
|
|||||||
l = unread.replies.length;
|
l = unread.replies.length;
|
||||||
favicon = $('link[rel="shortcut icon"]', d.head);
|
favicon = $('link[rel="shortcut icon"]', d.head);
|
||||||
favicon.href = g.dead ? l ? this.unreadDead : this.dead : l ? this.unread : this["default"];
|
favicon.href = g.dead ? l ? this.unreadDead : this.dead : l ? this.unread : this["default"];
|
||||||
if (engine === "gecko") {
|
if (engine !== 'webkit') {
|
||||||
clone = favicon.cloneNode(true);
|
clone = favicon.cloneNode(true);
|
||||||
|
favicon.href = null;
|
||||||
return $.replace(favicon, clone);
|
return $.replace(favicon, clone);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- mayhem
|
||||||
|
fix favicon updating on Opera
|
||||||
|
|
||||||
2.23.0
|
2.23.0
|
||||||
- mayhem
|
- mayhem
|
||||||
|
|||||||
@ -2171,9 +2171,12 @@ Favicon =
|
|||||||
else
|
else
|
||||||
@default
|
@default
|
||||||
|
|
||||||
#XXX `favicon.href = href` doesn't work on Firefox
|
#`favicon.href = href` doesn't work on Firefox
|
||||||
if engine is "gecko"
|
#`favicon.href = href` isn't enough on Opera
|
||||||
|
#Opera won't always update the favicon if the href do not change
|
||||||
|
if engine isnt 'webkit'
|
||||||
clone = favicon.cloneNode true
|
clone = favicon.cloneNode true
|
||||||
|
favicon.href = null
|
||||||
$.replace favicon, clone
|
$.replace favicon, clone
|
||||||
|
|
||||||
redirect = ->
|
redirect = ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user