refac/enh: unregisterServiceWorkers on update

This commit is contained in:
Timothy Jaeryang Baek
2025-11-20 15:34:15 -05:00
parent 4c28f19bdd
commit ff7a54653a
5 changed files with 46 additions and 7 deletions

View File

@@ -454,6 +454,7 @@ from open_webui.env import (
SAFE_MODE,
SRC_LOG_LEVELS,
VERSION,
DEPLOYMENT_ID,
INSTANCE_ID,
WEBUI_BUILD_HASH,
WEBUI_SECRET_KEY,
@@ -1983,6 +1984,7 @@ async def update_webhook_url(form_data: UrlForm, user=Depends(get_admin_user)):
async def get_app_version():
return {
"version": VERSION,
"deployment_id": DEPLOYMENT_ID,
}