Skip to content

Commit 9a72927

Browse files
Hongzhi Wenclaude
andcommitted
fix: skip changelog popup for first-time users to avoid overlapping with tutorial
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6b2f158 commit 9a72927

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

static/app.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,12 @@ window.addEventListener('load', () => {
250250
const cr = await fetch(`/api/changelog?since=${encodeURIComponent(lastVer)}&lang=${encodeURIComponent(lang)}`);
251251
const cdata = await cr.json();
252252
let entries = cdata.entries || [];
253-
// 全新用户(无历史记录)只展示最新一条,避免堆积过多
254-
if (!lastVer && entries.length > 1) {
255-
entries = [entries[entries.length - 1]];
253+
// 全新用户(无历史记录)跳过版本更新弹窗,直接记录当前版本
254+
if (!lastVer) {
255+
if (cdata.current_version) {
256+
localStorage.setItem('neko_last_notified_version', cdata.current_version);
257+
}
258+
entries = [];
256259
}
257260
if (entries.length > 0) {
258261
const changelogPromises = entries.map(entry => {

0 commit comments

Comments
 (0)