Remove MAC delay for options page

This commit is contained in:
Ilya Ig. Petrov 2018-05-03 23:03:00 +05:00
parent 7b98ed1ce7
commit d3b828303c

View File

@ -49,7 +49,13 @@ chrome.runtime.getBackgroundPage( (bgWindow) =>
); );
// READY TO RENDER // READY TO RENDER
setTimeout(() => { document.documentElement.style.display = 'initial'; }, 200); // Mac bug: https://bugs.chromium.org/p/chromium/issues/detail?id=428044 const show = () => { document.documentElement.style.display = 'initial'; };
if (theState.flags.ifInsideOptionsPage) {
show();
} else {
setTimeout(show, 200); // Mac bug: https://bugs.chromium.org/p/chromium/issues/detail?id=428044
}
} }
) )