Fix #367
This commit is contained in:
parent
8a0e70b19c
commit
8fe05bee37
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user