Skip to content

Commit

Permalink
fix: id with only numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jebibot committed Dec 31, 2024
1 parent 2db0c53 commit 9be8bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export default {
<body>
<div class="container">
<div id="streams">
${stream.map((s) => `<iframe src=${JSON.stringify(s.player)} name=${JSON.stringify(s.id)} frameborder="0" scrolling="no" allowfullscreen="true"></iframe>`).join('\n\t\t\t\t')}
${stream.map((s) => `<iframe src=${JSON.stringify(s.player)} name=${JSON.stringify(isNaN(Number(s.id)) ? s.id : `#${s.id}`)} frameborder="0" scrolling="no" allowfullscreen="true"></iframe>`).join('\n\t\t\t\t')}
</div>
<div id="chat-container">
<select id="chat-select" aria-label="채팅">
Expand Down

0 comments on commit 9be8bc8

Please sign in to comment.