This commit is contained in:
Nicolas Stepien 2012-04-02 12:21:46 +02:00
parent 8a0e70b19c
commit 8fe05bee37
2 changed files with 5 additions and 0 deletions

View File

@ -1959,6 +1959,7 @@
$.replace(home.firstElementChild, a);
}
if (!$.get('firstrun')) {
if (!Favicon.el) Favicon.init();
$.set('firstrun', true);
return Options.dialog();
}
@ -3320,6 +3321,7 @@
Favicon = {
init: function() {
var href;
if (this.el) return;
this.el = $('link[rel="shortcut icon"]', d.head);
this.el.type = 'image/x-icon';
href = this.el.href;

View File

@ -1644,6 +1644,8 @@ Options =
$.on a, 'click', Options.dialog
$.replace home.firstElementChild, a
unless $.get 'firstrun'
# Prevent race conditions
Favicon.init() unless Favicon.el
$.set 'firstrun', true
Options.dialog()
@ -2809,6 +2811,7 @@ Unread =
Favicon =
init: ->
return if @el # Prevent race condition with options first run
@el = $ 'link[rel="shortcut icon"]', d.head
@el.type = 'image/x-icon'
{href} = @el