修复输入播放链接获取弹幕报错 (#94)

* 修复输入播放链接获取弹幕报错

* 1.7.7
This commit is contained in:
Elegy233 authored and GitHub committed 2025-11-16 09:55:07 +08:00
1 parent 948384222e
commit 35870d4bba
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export const Globals = {
accessedEnvVars: {},
// 静态常量
VERSION: '1.7.6',
VERSION: '1.7.7',
MAX_LOGS: 500, // 日志存储,最多保存 500 行
MAX_ANIMES: 100,
+1 -1
View File
@@ -34,7 +34,7 @@ export class Anime {
throw new TypeError("fromJson 参数必须是对象");
}
const links = json.links.map(link => Link.fromJson(link));
const links = (json.links || []).map(link => Link.fromJson(link));
return new Anime({ ...json, links });
}