From cde57109e4674ffbe4f60c99d863be27d99179be Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 20 Apr 2023 16:57:52 +0530 Subject: [PATCH] Revert "Fetch release notes only from the main or beta branches" This reverts commit bc142c9ecd676713350bc26fd5dae485d0150cd1. --- ui/plugins/ui/release-notes.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/plugins/ui/release-notes.plugin.js b/ui/plugins/ui/release-notes.plugin.js index 5a462008..da7b79de 100644 --- a/ui/plugins/ui/release-notes.plugin.js +++ b/ui/plugins/ui/release-notes.plugin.js @@ -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