Compat: firefox
This commit is contained in:
parent
40a5dab311
commit
97fd2aa083
|
@ -50,6 +50,7 @@ h1 small {
|
||||||
|
|
||||||
.live-reload {
|
.live-reload {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
|
width: -moz-fit-content;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 0.5em auto;
|
margin: 0.5em auto;
|
||||||
|
|
|
@ -79,8 +79,12 @@ function createSourceEditor(style) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setWidgetStyle(widget) {
|
function setWidgetStyle(widget) {
|
||||||
const borderStyle = style.borderRightWidth !== '0px' ?
|
let borderStyle = '';
|
||||||
style.borderRight : '1px solid ' + style.color;
|
if (style.borderRightWidth !== '0px') {
|
||||||
|
borderStyle = `${style.borderRightWidth} ${style.borderRightStyle} ${style.borderRightColor}`;
|
||||||
|
} else {
|
||||||
|
borderStyle = `1px solid ${style.color}`;
|
||||||
|
}
|
||||||
widget.node.style.backgroundColor = style.backgroundColor;
|
widget.node.style.backgroundColor = style.backgroundColor;
|
||||||
widget.node.style.borderTop = borderStyle;
|
widget.node.style.borderTop = borderStyle;
|
||||||
widget.node.style.borderBottom = borderStyle;
|
widget.node.style.borderBottom = borderStyle;
|
||||||
|
|
|
@ -36,9 +36,14 @@ for (const type of [NodeList, NamedNodeMap, HTMLCollection, HTMLAllCollection])
|
||||||
window.addEventListener('resize', () => debounce(addTooltipsToEllipsized, 100));
|
window.addEventListener('resize', () => debounce(addTooltipsToEllipsized, 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
onDOMready().then(() => $('#firefox-transitions-bug-suppressor').remove());
|
onDOMready().then(() => {
|
||||||
|
const el = $('#firefox-transitions-bug-suppressor');
|
||||||
|
if (el) {
|
||||||
|
el.remove();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (navigator.userAgent.includes('Firefox')) {
|
if (navigator.userAgent.includes('Firefox') && chrome.windows) {
|
||||||
// die if unable to access BG directly
|
// die if unable to access BG directly
|
||||||
chrome.windows.getCurrent(wnd => {
|
chrome.windows.getCurrent(wnd => {
|
||||||
if (!BG && wnd.incognito) {
|
if (!BG && wnd.incognito) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user