Skip to content
This repository was archived by the owner on Aug 27, 2019. It is now read-only.

Commit 6d89fee

Browse files
committed
Fix Options UI background colour
1 parent 8361a4e commit 6d89fee

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/browser-style-supplement/extension-options.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
html {
88
font: message-box;
99
padding: 6px;
10-
background: #FBFBFB;
1110
}
1211

1312
.browser-style {

src/options/options.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,19 @@
1919

2020
document.addEventListener("DOMContentLoaded", async () => {
2121
return Promise.all([
22+
fixBackgroundColor(),
2223
i18nInit(),
2324
initOptions()
2425
]);
2526
});
2627

28+
async function fixBackgroundColor() {
29+
let browserInfo = await browser.runtime.getBrowserInfo();
30+
if (browserInfo.name === "Firefox" && browserInfo.version.localeCompare("57", {numeric:true}) < 0) {
31+
document.documentElement.style.background = "#FBFBFB";
32+
}
33+
}
34+
2735
async function initOptions() {
2836
let themes = ["default", "photon", "australis", "classic", "pastel-svg", "aero"];
2937
let data = (await browser.storage.sync.get({

0 commit comments

Comments
 (0)