fix(tuna-obs): fix lite mode logic

This commit is contained in:
JellyBrick
2024-10-18 07:45:49 +09:00
committed by GitHub
parent e8efca5a3e
commit 2e3ced6006

View File

@ -68,11 +68,13 @@ export default createPlugin({
})
.catch((error: { code: number; errno: number }) => {
if (!this.liteMode && is.dev()) {
console.debug(
`Error: '${
error.code || error.errno
}' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`,
);
if (is.dev()) {
console.debug(
`Error: '${
error.code || error.errno
}' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`,
);
}
this.liteMode = true;
}
});