mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-13 02:54:40 +08:00
fix: init failed
This commit is contained in:
@@ -521,7 +521,7 @@ async function runCriticalStartupChecks(): Promise<void> {
|
||||
*/
|
||||
export async function register() {
|
||||
// 只在服务器端运行
|
||||
if (typeof window === 'undefined') {
|
||||
if (typeof window === 'undefined' && typeof process !== 'undefined' && process.on && typeof process.on === 'function') {
|
||||
console.log('🚀 MoonTV 启动检查开始...');
|
||||
|
||||
// 注册进程退出事件处理
|
||||
|
||||
Reference in New Issue
Block a user