enh: offline mode

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

No files matched your search

+1 -1
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));