We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b2f158 commit 9a72927Copy full SHA for 9a72927
1 file changed
static/app.js
@@ -250,9 +250,12 @@ window.addEventListener('load', () => {
250
const cr = await fetch(`/api/changelog?since=${encodeURIComponent(lastVer)}&lang=${encodeURIComponent(lang)}`);
251
const cdata = await cr.json();
252
let entries = cdata.entries || [];
253
- // 全新用户(无历史记录)只展示最新一条,避免堆积过多
254
- if (!lastVer && entries.length > 1) {
255
- entries = [entries[entries.length - 1]];
+ // 全新用户(无历史记录)跳过版本更新弹窗,直接记录当前版本
+ if (!lastVer) {
+ if (cdata.current_version) {
256
+ localStorage.setItem('neko_last_notified_version', cdata.current_version);
257
+ }
258
+ entries = [];
259
}
260
if (entries.length > 0) {
261
const changelogPromises = entries.map(entry => {
0 commit comments