Fix updater settings panel error when updater.js is blocked

Add defensive typeof checks before referencing the Updater global in
loadUpdateStatus() and checkForUpdatesManual() so the settings panel
shows a helpful message instead of crashing. Also swap script load
order so updater.js loads before settings-manager.js.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-05 20:57:10 +00:00
parent a63184f4ff
commit a01f7f8b21
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -13925,10 +13925,10 @@
<!-- Toast Container -->
<div id="toastContainer"></div>
<!-- Settings Manager -->
<script src="{{ url_for('static', filename='js/core/settings-manager.js') }}"></script>
<!-- Updater -->
<script src="{{ url_for('static', filename='js/core/updater.js') }}"></script>
<!-- Settings Manager -->
<script src="{{ url_for('static', filename='js/core/settings-manager.js') }}"></script>
</body>
</html>