mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-08 05:04:40 +08:00
chore: improve popup compatibility
This commit is contained in:
+2
-2
@@ -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 }) {
|
||||
@@ -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'}>
|
||||
|
||||
Reference in New Issue
Block a user