fix: oauth error

This commit is contained in:
kangfenmao
2025-02-04 16:45:03 +08:00
parent e49b3e8173
commit 5211ed657a
3 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -163,9 +163,9 @@ export class WindowService {
mainWindow.webContents.setWindowOpenHandler((details) => {
const { url } = details
const oauthProviderUrls = ['https://account.siliconflow.cn']
const oauthProviderUrls = ['https://account.siliconflow.cn/oauth']
if (oauthProviderUrls.some((url) => url.startsWith(url))) {
if (oauthProviderUrls.some((link) => url.startsWith(link))) {
return {
action: 'allow',
overrideBrowserWindowOptions: {