fix: restore sidepanel bootstrap after merge

This commit is contained in:
sh2001sh
2026-04-21 19:15:11 +08:00
parent 451cedf104
commit 83a4f7ff01
+4 -3
View File
@@ -4839,7 +4839,8 @@ initializeReleaseInfo().catch((err) => {
}); });
loadHeroSmsCountries().catch((err) => { loadHeroSmsCountries().catch((err) => {
console.error('Failed to load HeroSMS countries:', err); console.error('Failed to load HeroSMS countries:', err);
}).finally(() => restoreState().then(() => { }).finally(() => {
return restoreState().then(() => {
syncPasswordToggleLabel(); syncPasswordToggleLabel();
syncVpsUrlToggleLabel(); syncVpsUrlToggleLabel();
syncVpsPasswordToggleLabel(); syncVpsPasswordToggleLabel();
@@ -4847,7 +4848,7 @@ loadHeroSmsCountries().catch((err) => {
updateButtonStates(); updateButtonStates();
updateStatusDisplay(latestState); updateStatusDisplay(latestState);
return refreshContributionContentHint(); return refreshContributionContentHint();
}).catch((err) => { }).catch((err) => {
console.error('Failed to initialize sidepanel state:', err); console.error('Failed to initialize sidepanel state:', err);
});
}); });
}));