Skip to content

Commit

Permalink
fix: soop nick
Browse files Browse the repository at this point in the history
  • Loading branch information
jebibot committed Dec 12, 2024
1 parent 3aa4f82 commit b7c6497
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export default {
</div>
<div id="chat-container">
<select id="chat-select">
${stream.map((s) => `<option value=${JSON.stringify(s.chat)}${s.extension && !hasExtension ? ` disabled>${s.id} [확장 프로그램 필요]` : `${s === initialChat ? ' selected' : ''}>${s.id}`}</option>`).join('\n\t\t\t\t\t')}
${stream.map((s) => `<option value=${JSON.stringify(s.chat)}${hasExtension || !s.extension ? `${s === initialChat ? ' selected' : ''}>${s.id}` : ` disabled>${s.id} [확장 프로그램 필요]`}</option>`).join('\n\t\t\t\t\t')}
</select>
<iframe src=${JSON.stringify((!initialChat?.extension && initialChat?.chat) || 'about:blank')} frameborder="0" scrolling="no" id="chat"></iframe>
</div>
Expand Down Expand Up @@ -431,11 +431,7 @@ export default {
}
break;
case "PupdateBroadInfo":
for (const o of chatSelect.children) {
if (o.textContent === e.data.data.id) {
o.textContent = e.data.data.nick;
}
}
setName(Array.prototype.findIndex.call(iframes, (f) => e.source === f.contentWindow), e.data.data.nick);
break;
case "showRefreshOverlay":
showRefreshOverlay();
Expand Down

0 comments on commit b7c6497

Please sign in to comment.