Revert "Fetch release notes only from the main or beta branches"

This reverts commit bc142c9ecd.
This commit is contained in:
cmdr2 2023-04-20 16:57:52 +05:30
parent bc142c9ecd
commit cde57109e4

View File

@ -51,9 +51,9 @@
}
appConfig = await appConfig.json()
const notesBranch = (appConfig.update_branch !== "beta" ? "main" : "beta")
const updateBranch = appConfig.update_branch || 'main'
let releaseNotes = await fetch(`https://raw.githubusercontent.com/cmdr2/stable-diffusion-ui/${notesBranch}/CHANGES.md`)
let releaseNotes = await fetch(`https://raw.githubusercontent.com/cmdr2/stable-diffusion-ui/${updateBranch}/CHANGES.md`)
if (!releaseNotes.ok) {
console.error('[release-notes] Failed to get CHANGES.md.')
return