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 }) => { .catch((error: { code: number; errno: number }) => {
if (!this.liteMode && is.dev()) { if (!this.liteMode && is.dev()) {
console.debug( if (is.dev()) {
`Error: '${ console.debug(
error.code || error.errno `Error: '${
}' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`, error.code || error.errno
); }' - when trying to access obs-tuna webserver at port ${port}. enable lite mode`,
);
}
this.liteMode = true; this.liteMode = true;
} }
}); });