Fix missing FF favicons Closes #683
I think the combo of swapping `window.prefs` for `prefs`, and moving the function inside `onDOMready()` does the trick. @eight04 Any idea why `window.prefs` no longer works? Does the rest LGTY?
This commit is contained in:
parent
5f21213693
commit
adc43a89e9
|
@ -68,12 +68,10 @@ onDOMready().then(() => {
|
|||
$.remove('#firefox-transitions-bug-suppressor');
|
||||
initCollapsibles();
|
||||
focusAccessibility();
|
||||
});
|
||||
|
||||
if (!chrome.app && chrome.windows) {
|
||||
if (!chrome.app && chrome.windows) {
|
||||
// add favicon in Firefox
|
||||
setTimeout(() => {
|
||||
if (!window.prefs) {
|
||||
if (!prefs) {
|
||||
return;
|
||||
}
|
||||
const iconset = ['', 'light/'][prefs.get('iconset')] || '';
|
||||
|
@ -85,7 +83,8 @@ if (!chrome.app && chrome.windows) {
|
|||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// set language for CSS :lang and [FF-only] hyphenation
|
||||
document.documentElement.setAttribute('lang', chrome.i18n.getUILanguage());
|
||||
|
|
Loading…
Reference in New Issue
Block a user