Skip to content

Commit 235e31e

Browse files
author
Deep-sea-school
committed
修复超时问题
1 parent e2a9fa6 commit 235e31e

8 files changed

Lines changed: 32 additions & 1478 deletions

File tree

.claude/settings.local.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm run build)",
5+
"Bash(npm start)",
6+
"Bash(taskkill /f /im node.exe 2)",
7+
"Bash(nul)"
8+
],
9+
"deny": [],
10+
"ask": []
11+
}
12+
}

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ jspm_packages/
144144
*.swo
145145
*~
146146

147-
# Claude settings
148-
.claude/
149-
150147
# OS generated files
151148
.DS_Store
152149
.DS_Store?

src/components/github-oauth-modal/github-oauth-modal.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ const DOMAIN_CONFIGS = {
104104
const getDomainConfig = () => {
105105
const currentDomain = window.location.hostname;
106106

107+
// 检查是否在 Electron 环境中
108+
const isElectron = typeof window.EditorPreload !== 'undefined';
109+
110+
if (isElectron) {
111+
// 在 Electron 环境中,直接使用内置的配置而不显示警告
112+
return DOMAIN_CONFIGS['02studio.xyz'];
113+
}
114+
107115
// 精确匹配域名
108116
if (DOMAIN_CONFIGS[currentDomain]) {
109117
return DOMAIN_CONFIGS[currentDomain];

0 commit comments

Comments
 (0)