From f75c07bb9692f2f22384afd498289c710643d5db Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Mon, 25 Mar 2019 06:13:40 -0500 Subject: [PATCH] Add suggestions --- js/dom.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/dom.js b/js/dom.js index f59c87c2..071a3b43 100644 --- a/js/dom.js +++ b/js/dom.js @@ -68,12 +68,9 @@ onDOMready().then(() => { $.remove('#firefox-transitions-bug-suppressor'); initCollapsibles(); focusAccessibility(); - if (!chrome.app && chrome.windows) { + if (!chrome.app && chrome.windows && typeof prefs !== 'undefined') { // add favicon in Firefox - setTimeout(() => { - if (!prefs) { - return; - } + prefs.initializing.then(() => { const iconset = ['', 'light/'][prefs.get('iconset')] || ''; for (const size of [38, 32, 19, 16]) { document.head.appendChild($create('link', {