From 3eb09d6a382d5a7ecac03418d5da6ce45a33b827 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sun, 2 Apr 2023 16:37:27 +0800 Subject: [PATCH] chore: improve popup compatibility --- src/popup/Popup.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup/Popup.jsx b/src/popup/Popup.jsx index ea823d4..75388fd 100644 --- a/src/popup/Popup.jsx +++ b/src/popup/Popup.jsx @@ -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 (