Skip to content

Commit

Permalink
fix: dev mode에서만 debug 모드 동작
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeongjun3 committed May 1, 2024
1 parent 9714b33 commit 8f27219
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/shootingManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
loadMedia,
} from "@Utils/mediaExtension";
import uaParserManager from "@Utils/uaParserManager";
import { isDev } from "@Utils/envExtension";

interface CanvasConfigure {
width: number;
Expand Down Expand Up @@ -45,7 +46,7 @@ export default class ShootingManager {

this.m_debugMode = true;

if (this.m_debugMode) {
if (this.m_debugMode && isDev()) {
document.body.appendChild(this.m_videoEl);
document.body.appendChild(this.m_recordVideoEl);
this.m_recordVideoEl.controls = true;
Expand Down

0 comments on commit 8f27219

Please sign in to comment.