fix: BOM清除+chLabel初始化(审查阻断)

This commit is contained in:
LukeMackin
2026-07-22 01:16:41 +08:00
parent 45cce458ac
commit 40998f9be1
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ h1{font-size:18px;color:#38bdf8}
.badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:10px;margin-left:8px}
.badge-new{background:#dc2626;color:#fff}
</style></head><body>
<div class="gear" onclick="openSettings()"></div>
<div class="gear" onclick="openSettings()">鈿?/div>
<h1>Yuzu GCA</h1>
<div class="ver"><span id="ver"></span><span id="badge" class="badge badge-new" style="display:none">NEW</span></div>
<div class="card"><div class="card-title">Channel: <span id="chLabel">Stable</span></div></div>
@@ -41,6 +41,7 @@ h1{font-size:18px;color:#38bdf8}
</div>
<script>
var channel=localStorage.getItem('gca_channel')||'stable';
document.getElementById('chLabel').innerText=(localStorage.getItem('gca_channel')||'stable').charAt(0).toUpperCase()+(localStorage.getItem('gca_channel')||'stable').slice(1);
var dlUrl='',dlVer='',dlSha='';
function log(m){var l=document.getElementById('log');l.innerText+=m+'\n';l.scrollTop=l.scrollHeight}
function openSettings(){