Skip to content

Commit 8cef983

Browse files
committed
chore: improve popup compatibility
1 parent 6c3b765 commit 8cef983

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/popup/Popup.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import wechatpay from './donation/wechatpay.jpg'
2424
import bugmeacoffee from './donation/bugmeacoffee.png'
2525
import { useWindowTheme } from '../hooks/use-window-theme.mjs'
2626
import { languageList } from '../config/language.mjs'
27-
import { isSafari } from '../utils/index.mjs'
27+
import { isMobile, isSafari } from '../utils/index.mjs'
2828
import { useTranslation } from 'react-i18next'
2929

3030
function GeneralPart({ config, updateConfig }) {
@@ -506,7 +506,7 @@ function Popup() {
506506
}, [config.themeMode, theme])
507507

508508
const search = new URLSearchParams(window.location.search)
509-
const popup = search.get('popup') // manifest v2
509+
const popup = search.get('popup') && !isMobile() // manifest v2
510510

511511
return (
512512
<div className={popup === 'true' ? 'container-popup-mode' : 'container-page-mode'}>

0 commit comments

Comments
 (0)