refactor: remove minapp.html

This commit is contained in:
kangfenmao
2024-08-22 13:04:24 +08:00
parent 9746c73cc5
commit 45e16b72f5
9 changed files with 25 additions and 166 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ export const PROVIDER_CONFIG = {
},
app: {
name: 'Groq',
url: 'https://groq.com/',
url: 'https://chat.groq.com/',
logo: GroqProviderLogo
}
},
+7
View File
@@ -12,6 +12,13 @@ const App: FC<Props> = ({ app }) => {
const { theme } = useTheme()
const onClick = () => {
const websiteReg = /claude|chatgpt|groq/i
if (websiteReg.test(app.url)) {
window.api.minApp({ url: app.url, windowOptions: { title: app.name } })
return
}
MinApp.start(app)
}