diff --git a/ext/src/popup/index.html b/ext/src/popup/index.html index 59a008d..2821f73 100755 --- a/ext/src/popup/index.html +++ b/ext/src/popup/index.html @@ -2,7 +2,7 @@
- + diff --git a/ext/src/popup/index.jsx b/ext/src/popup/index.jsx index 530d616..1bc4b85 100755 --- a/ext/src/popup/index.jsx +++ b/ext/src/popup/index.jsx @@ -5,6 +5,18 @@ import ReactDOM from "react-dom"; const _ = browser.i18n.getMessage; +// macOS styles +browser.runtime.getPlatformInfo() + .then(platformInfo => { + if (platformInfo.os === "mac") { + const link = document.createElement("link"); + link.rel = "stylesheet"; + link.href = "styles/mac.css"; + document.head.appendChild(link); + } + }); + + let winWidth = 350; let winHeight = 200; @@ -97,11 +109,12 @@ class App extends Component { to: