myagent-ai 1.23.11 → 1.23.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/api_server.py +3 -1
package/package.json
CHANGED
package/web/api_server.py
CHANGED
|
@@ -1135,11 +1135,13 @@ try {{
|
|
|
1135
1135
|
}} catch (localErr) {{
|
|
1136
1136
|
loadError = localErr.message;
|
|
1137
1137
|
console.warn('[VNC] 本地加载失败,尝试 CDN:', localErr.message);
|
|
1138
|
-
// 本地加载失败,尝试 CDN
|
|
1138
|
+
// 本地加载失败,尝试 CDN 回退(多源容错)
|
|
1139
1139
|
const CDN_SOURCES = [
|
|
1140
1140
|
'https://cdn.jsdelivr.net/npm/@novnc/novnc@1.5.0/core/rfb.js',
|
|
1141
|
+
'https://fastly.jsdelivr.net/npm/@novnc/novnc@1.5.0/core/rfb.js',
|
|
1141
1142
|
'https://unpkg.com/@novnc/novnc@1.5.0/core/rfb.js',
|
|
1142
1143
|
'https://registry.npmmirror.com/@novnc/novnc/1.5.0/files/core/rfb.js',
|
|
1144
|
+
'https://cdn.staticfile.net/novnc/novnc/1.5.0/files/core/rfb.js',
|
|
1143
1145
|
];
|
|
1144
1146
|
for (const src of CDN_SOURCES) {{
|
|
1145
1147
|
try {{
|