Fix #367
This commit is contained in:
parent
8a0e70b19c
commit
8fe05bee37
@ -1959,6 +1959,7 @@
|
|||||||
$.replace(home.firstElementChild, a);
|
$.replace(home.firstElementChild, a);
|
||||||
}
|
}
|
||||||
if (!$.get('firstrun')) {
|
if (!$.get('firstrun')) {
|
||||||
|
if (!Favicon.el) Favicon.init();
|
||||||
$.set('firstrun', true);
|
$.set('firstrun', true);
|
||||||
return Options.dialog();
|
return Options.dialog();
|
||||||
}
|
}
|
||||||
@ -3320,6 +3321,7 @@
|
|||||||
Favicon = {
|
Favicon = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var href;
|
var href;
|
||||||
|
if (this.el) return;
|
||||||
this.el = $('link[rel="shortcut icon"]', d.head);
|
this.el = $('link[rel="shortcut icon"]', d.head);
|
||||||
this.el.type = 'image/x-icon';
|
this.el.type = 'image/x-icon';
|
||||||
href = this.el.href;
|
href = this.el.href;
|
||||||
|
|||||||
@ -1644,6 +1644,8 @@ Options =
|
|||||||
$.on a, 'click', Options.dialog
|
$.on a, 'click', Options.dialog
|
||||||
$.replace home.firstElementChild, a
|
$.replace home.firstElementChild, a
|
||||||
unless $.get 'firstrun'
|
unless $.get 'firstrun'
|
||||||
|
# Prevent race conditions
|
||||||
|
Favicon.init() unless Favicon.el
|
||||||
$.set 'firstrun', true
|
$.set 'firstrun', true
|
||||||
Options.dialog()
|
Options.dialog()
|
||||||
|
|
||||||
@ -2809,6 +2811,7 @@ Unread =
|
|||||||
|
|
||||||
Favicon =
|
Favicon =
|
||||||
init: ->
|
init: ->
|
||||||
|
return if @el # Prevent race condition with options first run
|
||||||
@el = $ 'link[rel="shortcut icon"]', d.head
|
@el = $ 'link[rel="shortcut icon"]', d.head
|
||||||
@el.type = 'image/x-icon'
|
@el.type = 'image/x-icon'
|
||||||
{href} = @el
|
{href} = @el
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user