fix: [sound-logo] Alpine 표현식 에러 + WebSocket Blob 파싱 에러 수정
- x-text 속성에서 이스케이프된 따옴표 제거 (Blade 빌드 시 깨짐 방지) - WebSocket onmessage에서 Blob 바이너리 데이터 수신 시 JSON.parse 건너뛰기
This commit is contained in:
@@ -414,7 +414,7 @@
|
||||
<div style="padding: 6px 8px; border-radius: 6px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); margin-bottom: 8px;">
|
||||
<div style="font-size: 11px; color: var(--sl-green); display: flex; align-items: center; gap: 4px;">
|
||||
<i class="ri-checkbox-circle-fill"></i>
|
||||
<span x-text="'\"' + voiceText + '\" · ' + voiceBuffer.duration.toFixed(1) + '초'"></span>
|
||||
<span x-text="voiceText + ' · ' + voiceBuffer.duration.toFixed(1) + '초'"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sl-param">
|
||||
@@ -1809,7 +1809,10 @@ function soundLogo() {
|
||||
};
|
||||
|
||||
ws.onmessage = (event) => {
|
||||
const msg = JSON.parse(event.data);
|
||||
// 바이너리 Blob은 무시 (JSON 메시지만 처리)
|
||||
if (event.data instanceof Blob) return;
|
||||
let msg;
|
||||
try { msg = JSON.parse(event.data); } catch { return; }
|
||||
|
||||
// Setup 완료
|
||||
if (msg.setupComplete) {
|
||||
|
||||
Reference in New Issue
Block a user