flat: 暂存
This commit is contained in:
@@ -34,7 +34,7 @@ function createWindow(): void {
|
|||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
// mainWindow.webContents.openDevTools();
|
mainWindow.webContents.openDevTools();
|
||||||
|
|
||||||
mainWindow.webContents.setWindowOpenHandler((details) => {
|
mainWindow.webContents.setWindowOpenHandler((details) => {
|
||||||
shell.openExternal(details.url);
|
shell.openExternal(details.url);
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export function setupLiveHandlers() {
|
|||||||
hasLiveWindow: !!liveState.liveWindow,
|
hasLiveWindow: !!liveState.liveWindow,
|
||||||
isVideoInserted: liveState.isVideoInserted,
|
isVideoInserted: liveState.isVideoInserted,
|
||||||
cameraActive: liveState.cameraActive,
|
cameraActive: liveState.cameraActive,
|
||||||
sessionId: liveState.sessionId
|
sessionId: liveState.sessionId,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@@ -107,7 +107,6 @@ export function setupLiveHandlers() {
|
|||||||
|
|
||||||
// socket
|
// socket
|
||||||
|
|
||||||
|
|
||||||
// 5. 设置直播状态
|
// 5. 设置直播状态
|
||||||
liveState.isLiveOn = true;
|
liveState.isLiveOn = true;
|
||||||
|
|
||||||
@@ -241,7 +240,7 @@ export function setupLiveHandlers() {
|
|||||||
allowRunningInsecureContent: true, // 允许运行本地内容
|
allowRunningInsecureContent: true, // 允许运行本地内容
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// liveState.liveWindow.webContents.openDevTools();
|
liveState.liveWindow.webContents.openDevTools();
|
||||||
liveState.liveWindow.on("closed", () => {
|
liveState.liveWindow.on("closed", () => {
|
||||||
liveState.liveWindow = null;
|
liveState.liveWindow = null;
|
||||||
liveState.isLiveOn = false;
|
liveState.isLiveOn = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user