Skip to content

Commit

Permalink
fix: 修复更新无反应的问题,fix #1014
Browse files Browse the repository at this point in the history
  • Loading branch information
Keldos-Li committed Jan 15, 2024
1 parent fc0eacc commit 5de3ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ def background_update():
f"{git} merge --no-edit {updater_branch} -q",
desc=f"[Updater] Trying to apply latest update on version {latest_release_tag}...",
)
run(f"{git} pull {track_repo} --tags", live=False)
except Exception:
logging.error(f"Update failed in merging")
try:
Expand Down
2 changes: 1 addition & 1 deletion web_assets/javascript/updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function setUpdater() {
var statusObserver = new MutationObserver(function (mutationsList) {
for (const mutation of mutationsList) {
if (mutation.type === 'attributes' || mutation.type === 'childList') {
if (statusDisplay.innerHTML.includes('<span id="update-status"')) {
if (statusDisplay.innerHTML.includes('id="update-status"')) {
if (getUpdateStatus() === "success") {
updatingInfoElement.innerText = i18n(updateSuccess_i18n);
noUpdateHtml();
Expand Down

0 comments on commit 5de3ac8

Please sign in to comment.