fix favicon type once only
This commit is contained in:
parent
b00bc31097
commit
b05aa000d8
@ -1961,7 +1961,6 @@
|
|||||||
favicon = $('link[rel="shortcut icon"]', d.head);
|
favicon = $('link[rel="shortcut icon"]', d.head);
|
||||||
clone = favicon.cloneNode(true);
|
clone = favicon.cloneNode(true);
|
||||||
clone.href = href;
|
clone.href = href;
|
||||||
clone.setAttribute('type', 'image/x-icon');
|
|
||||||
return $.replace(favicon, clone);
|
return $.replace(favicon, clone);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -2277,6 +2276,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW;
|
Favicon.halo = /ws/.test(Favicon["default"]) ? Favicon.haloSFW : Favicon.haloNSFW;
|
||||||
|
$('link[rel="shortcut icon"]', d.head).setAttribute('type', 'image/x-icon');
|
||||||
g.hiddenReplies = $.getValue("hiddenReplies/" + g.BOARD + "/", {});
|
g.hiddenReplies = $.getValue("hiddenReplies/" + g.BOARD + "/", {});
|
||||||
tzOffset = (new Date()).getTimezoneOffset() / 60;
|
tzOffset = (new Date()).getTimezoneOffset() / 60;
|
||||||
g.chanOffset = 5 - tzOffset;
|
g.chanOffset = 5 - tzOffset;
|
||||||
|
|||||||
@ -1540,10 +1540,8 @@ Favicon =
|
|||||||
favicon = $ 'link[rel="shortcut icon"]', d.head
|
favicon = $ 'link[rel="shortcut icon"]', d.head
|
||||||
clone = favicon.cloneNode true
|
clone = favicon.cloneNode true
|
||||||
clone.href = href
|
clone.href = href
|
||||||
clone.setAttribute 'type', 'image/x-icon'
|
|
||||||
$.replace favicon, clone
|
$.replace favicon, clone
|
||||||
|
|
||||||
|
|
||||||
redirect = ->
|
redirect = ->
|
||||||
switch g.BOARD
|
switch g.BOARD
|
||||||
when 'a', 'g', 'lit', 'sci', 'tv'
|
when 'a', 'g', 'lit', 'sci', 'tv'
|
||||||
@ -1748,6 +1746,7 @@ main =
|
|||||||
return
|
return
|
||||||
|
|
||||||
Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW
|
Favicon.halo = if /ws/.test Favicon.default then Favicon.haloSFW else Favicon.haloNSFW
|
||||||
|
$('link[rel="shortcut icon"]', d.head).setAttribute 'type', 'image/x-icon'
|
||||||
g.hiddenReplies = $.getValue "hiddenReplies/#{g.BOARD}/", {}
|
g.hiddenReplies = $.getValue "hiddenReplies/#{g.BOARD}/", {}
|
||||||
tzOffset = (new Date()).getTimezoneOffset() / 60
|
tzOffset = (new Date()).getTimezoneOffset() / 60
|
||||||
# GMT -8 is given as +480; would GMT +8 be -480 ?
|
# GMT -8 is given as +480; would GMT +8 be -480 ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user