creditdaddy 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/panel.html CHANGED
@@ -3646,6 +3646,9 @@ function openFullChangelog() {
3646
3646
  function openChangelogModal() {
3647
3647
  const openReleases = openFullChangelog;
3648
3648
  if (!(window.creditdaddy && typeof window.creditdaddy.changelogBrief === 'function')) { openReleases(); return; }
3649
+ // 先开窗给加载态:在线拉 GitHub API 最长 10s,无反馈就是「点了没反应」(用户反馈截图)
3650
+ $('changelog-body').innerHTML = T('<div class="hint">加载中…</div>');
3651
+ openModal('m-changelog');
3649
3652
  window.creditdaddy.changelogBrief().then((r) => {
3650
3653
  const box = $('changelog-body');
3651
3654
  const strip = (s) => esc(String(s || '').replace(/\*\*/g, ''));
@@ -3657,7 +3660,6 @@ function openChangelogModal() {
3657
3660
  + (s.topics && s.topics.length ? '<div class="hint" style="margin-top:4px">' + s.topics.map(strip).join(' · ') + '</div>' : '')
3658
3661
  + '</div>').join('')
3659
3662
  : T('<div class="hint">暂无本地更新日志,请到 GitHub Releases 查看。</div>');
3660
- openModal('m-changelog');
3661
3663
  }).catch(openReleases);
3662
3664
  }
3663
3665
  $('btn-changelog-full').onclick = openFullChangelog;