Skip to content

Commit 53ffa94

Browse files
committed
chore: improve popup compatibility for firefox
1 parent a2d5560 commit 53ffa94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/popup/Popup.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import wechatpay from './donation/wechatpay.jpg'
2323
import bugmeacoffee from './donation/bugmeacoffee.png'
2424
import { useWindowTheme } from '../hooks/use-window-theme.mjs'
2525
import { languageList } from '../config/language.mjs'
26-
import { isSafari } from '../utils/index.mjs'
26+
import { isFirefox, isSafari } from '../utils/index.mjs'
2727

2828
function GeneralPart({ config, updateConfig }) {
2929
const [balance, setBalance] = useState(null)
@@ -282,7 +282,8 @@ function AdvancedPart({ config, updateConfig }) {
282282
updateConfig({ userSiteRegexOnly: checked })
283283
}}
284284
/>
285-
Exclusively use Custom Site Regex for website matching, ignoring built-in rules
285+
Exclusively use Custom Site Regex for website matching,{isFirefox() ? <br /> : ' '}ignoring
286+
built-in rules
286287
</label>
287288
<br />
288289
<label>

0 commit comments

Comments
 (0)