Skip to content

Commit

Permalink
chore: improve popup compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed Apr 2, 2023
1 parent 6c3b765 commit 8cef983
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/popup/Popup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import wechatpay from './donation/wechatpay.jpg'
import bugmeacoffee from './donation/bugmeacoffee.png'
import { useWindowTheme } from '../hooks/use-window-theme.mjs'
import { languageList } from '../config/language.mjs'
import { isSafari } from '../utils/index.mjs'
import { isMobile, isSafari } from '../utils/index.mjs'
import { useTranslation } from 'react-i18next'

function GeneralPart({ config, updateConfig }) {
Expand Down Expand Up @@ -506,7 +506,7 @@ function Popup() {
}, [config.themeMode, theme])

const search = new URLSearchParams(window.location.search)
const popup = search.get('popup') // manifest v2
const popup = search.get('popup') && !isMobile() // manifest v2

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

0 comments on commit 8cef983

Please sign in to comment.