mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 10:43:36 +00:00
fix: prevent 404 errors when comparing development versions
Skip GitHub API comparison for development versions (containing -dev or +commit) since these are not real GitHub tags. Shows friendly message instead of 404s. Fixes console spam: "Failed to load resource: the server responded with a status of 404" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1685,6 +1685,18 @@ PulseApp.ui.settings = (() => {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if current version is a development version (has -dev or +commit)
|
||||
const isDevVersion = cleanCurrentVersion.includes('-dev') || cleanCurrentVersion.includes('+');
|
||||
|
||||
if (isDevVersion) {
|
||||
// For development versions, skip API comparison and show simple message
|
||||
console.log(`[Settings] Development version detected (${cleanCurrentVersion}), skipping GitHub API comparison`);
|
||||
changesLoading.classList.add('hidden');
|
||||
changesSummaryText.innerHTML = '<span class="text-blue-600 dark:text-blue-400">📦 Update available from development version to release version</span>';
|
||||
changesSummaryText.classList.remove('hidden');
|
||||
return;
|
||||
}
|
||||
|
||||
// For RC versions, check if they exist as real tags before comparing
|
||||
// If current version is a dynamic RC (like 3.24.0-rc30), try to find the closest stable version
|
||||
let baseVersion, headVersion;
|
||||
|
||||
Reference in New Issue
Block a user