enh: offline mode

This commit is contained in:
Timothy Jaeryang Baek
2025-06-30 15:20:41 +04:00
parent 2748fc1e4d
commit 71d550dd26
4 changed files with 29 additions and 20 deletions

View File

@@ -228,7 +228,7 @@
}
// Check for version updates
if ($user?.role === 'admin') {
if ($user?.role === 'admin' && !$config?.offline_mode) {
// Check if the user has dismissed the update toast in the last 24 hours
if (localStorage.dismissedUpdateToast) {
const dismissedUpdateToast = new Date(Number(localStorage.dismissedUpdateToast));